A Calgary teen convicted in the beating and stabbing death of a homeless man two years ago has been given a three-year sentence for manslaughter.

Gabriel Okeynan, 45, was killed and robbed of his backpack in June 2014 near Marlborough Mall.

Two boys, who were 13 and 16 years old at the time, were arrested and initially charged with second-degree murder.

The sentenced imposed Friday morning by Court of Queen's Bench Justice Scott Brooker means the older of the two boys will spend no more time in custody.

He gets credit for 12 months already served, and will spend another 24 months under a conditional supervision order.

He has already served a four-month sentence for robbery in connection with the case.

'Senseless' offence

Brooker noted that the teen suffers from severe cognitive and developmental disabilities and had a traumatic childhood.

For us, it's a big loss. A life is taken, and now they're free. - Derwin Okeynan, victim's uncle

He called Okeynan's death a "senseless and violent offence." But he went on to say the "young person's difficulties cannot be underestimated."

The teen, whose IQ is in the extremely low range according to reports, was likely led into the crime by the co-defendant, Brooker said.

Given all the aggravating factors, "it's difficult to come up with a reliable risk assessment," he said.

However, he said he is satisfied that the sentence "constitutes meaningful consequences and will promote his rehabilitation into society."

The judge also imposed numerous conditions, including a curfew, a weapons prohibition, and that he live with his mother or someone officials deem suitable.

'Difficult issues'

Jim Lutz, the teen's lawyer, says his client is happy with the sentence.

"He looks forward to be being back with his family and working on some very difficult issues," he said.

Last November, the younger teen, who pleaded guilty to manslaughter, was given a 33-month sentence.

He spent the next six months in a group home, which was to be followed by 12 months under community supervision.

Derwin Okeynan, the victim's uncle, says he wishes both teens had been sentenced to more time in custody.

"For us, it's a big loss. A life is taken, and now they're free," he said.

"So now, within a few days, these young people are going to be on the street, on probation. If these young people get into trouble, yes they're going back to jail. So I hope that they do listen."