The man who shot a 2-year-old outside a Kroger in DeKalb County in 2013 is headed for prison.

Chazrel Burton, 25, pleaded guilty Friday in DeKalb Superior Court to charges from an incident in which he fired 15 rounds into a family's car, DeKalb County prosecutors said in a statement.

Burton will serve 25 years of a 40-year term in prison, and the rest on probation.

Burton and the toddler’s father, Jermaine Harrison, were in a confrontation after Burton had robbed someone outside the Kroger on North Hairston Road in Stone Mountain. Harrison then left Burton and returned to his car with his wife and son, prosecutors said.

During Friday’s plea hearing, prosecutors played a surveillance video from Kroger that showed Burton walking past the Harrisons’ car, then turning and firing from a few feet away.

He fired 15 rounds before fleeing, prosecutors said. Burton surrendered to police after a weeklong manhunt.

“He could have killed everyone in that car,” DeKalb County District Attorney Robert James said after the plea hearing.