Follow CBSMIAMI.COM: Facebook | Twitter

SANFORD (CBSMiami/AP) — A Florida man has pleaded guilty to fatally shooting his ex-girlfriend and her 8-year-old son, as well as wounding four others, as part of a deal to avoid the death penalty.

READ MORE: Miami-Dade PD Investigating Officer-Involved Shooting Where Suspects Tried Running Over Sergeant

Now he’ll spend the rest of his life behind bars.

Prosecutors in Seminole County say Allen Cashe pleaded no contest Monday to two counts of first-degree murder, four counts of attempted first-degree murder, and a count of attempted first-degree felony murder.

Cashe faces a mandatory life sentence at a Jan. 16 hearing.

READ MORE: Tropical Depression Claudette Still Producing Heavy Rains Over Much Of Southeastern US

Police say Cashe killed Latina Herring in March 2017 after she demanded he move out of her home in Sanford, a suburb of Orlando.

Herring’s son, Branden Christian, was also fatally shot. Another son and Herring’s father were wounded.

Authorities say Cashe then went to a nearby street and shot two bystanders, including a high school student.

MORE NEWS: 1 Dead, 1 Injured After Truck Slams Into Spectators At Stonewall Pride Parade In Wilton Manors

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)