(CN) - Convicted Charleston church gunman Dylann Roof will plead guilty to state murder charges to avoid a second death sentence.
Roof will enter his guilty plea at a hearing in Charleston Circuit Court April 10, according to Solicitor Scarlett Wilson.
She said he will enter the plea in exchange for a sentence of life in prison.
Roof was convicted in federal court in December for the murder of nine black parishioners and wounding of three others at Charleston's Emanuel AME Church in June 2015.
Roof was awaiting trial on state murder charges for the same crimes, and Wilson had consistently maintained she too would seek the death penalty.
She said the plea deal will allow Roof to be transferred to federal custody.
Read the Top 8
Sign up for the Top 8, a roundup of the day's top stories delivered directly to your inbox Monday through Friday.