Terry Smith Jr. was found buried in a shallow grave in the backyard of his family home in Murrieta in July 2013.

A 17-year-old Menifee boy was sentenced in juvenile court on Friday after “admitting” to a voluntary manslaughter charge in the killing of his half brother, according to an official with the Riverside County District Attorney’s Office.

The teen, who is not being named by KTLA because he was charged as a minor, admitted to the manslaughter charge as part of an agreement with prosecutors, spokesman John Hall with the DA’s office said in an email.

The boy’s body was found four days later buried in a shallow grave in the backyard of the home the half brothers shared with their mother and her partner.

The teen was also sentenced to another year in connection with a separate case, according to Hall.

However, the maximum amount of time he can serve is until the age of 23, Hall added. The equivalent of a parole hearing will be held for the teen in four years, at which time it will be determined whether he should be released or serve out the remaining time.