He and prosecutors agreed to a sentence of 25 years in prison with parole eligibility after 10 years for the April 2024 killing.