OAKLAND (CBS/AP) — An 18-year-old boy convicted of first-degree murder has been sentenced in the shooting death of a toddler during the filming of a rap video in Oakland.

Frederick Coleman was sentenced to 25 years to life in state prison in Alameda County Superior Court on Thursday as part of a plea deal with prosecutors in January.

READ MORE: Christmas Tree At Oakland's Jack London Square Catches Fire; Arson Investigation Underway

Coleman was charged as an adult with murder and attempted murder in the attack outside a liquor store.

READ MORE: Bicyclist Killed In Fall At Oakland's Shepherd Canyon Park

Authorities say 23-month-old Hiram Lawrence Jr. was shot when Coleman and two other Acorn gang members opened fire. Six others, including the boy’s father, were wounded in the attack on Nov. 28, 2011.

Hiram was shot in the head and died 11 days later.

MORE NEWS: Sabrina Spellman Makes An Appearance On The CW's Riverdale; Kiernan Shipka Reveals 'Fans Will Get Some Clarity'

Two other suspects accused in the shooting are being prosecuted in federal court.

© Copyright 2014 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.