A 13-year-old boy who admitted stabbing a teenage friend to death earlier this summer has received a 15-year sentence as part of a plea agreement.

State District Judge Alan Mayfield accepted the plea agreement Monday after rejecting a 10-year proposal earlier this month. The boy was 12 at the time of the June 6 stabbing.

Authorities said the boy, whose name is not being released because of his age, stabbed 14-year-old Keith Dancer in the heart with a steak knife during a dispute.

Mayfield told the youth that if he continues to show good behavior, he could be released on parole in three years.