UPPER MARLBORO, Md. (WUSA9) -- A former District Heights police officer who was convicted for shooting a handcuffed suspect in the back was sentenced to five years in prison Thursday.

Johnnie Riley faced a maximum sentence of more than 45 years in prison, with five years mandatory. Upon his release, Riley will serve five years supervised probation and do more than 2,000 hours of community service.

"We respectfully disagree with the judge's sentence in this case," State's Attorney Angela Alsobrooks said via Twitter.

Riley was convicted for the September 2012 shooting of Kalvin Kyle. He was found guilty of first and second degree assault, use of a handgun in the commission of a crime of violence and misconduct in office.

During his original sentencing in early September, Riley tried to attack prosecutors. That's when a judge revoked his bond. Riley was also sentenced to 30 days in jail for the attack.

In September 2012, Riley pulled Kalvin Kyle over because he was riding a stolen motorcycle. Riley handcuffed Kyle and placed him in his police cruiser, but at some point Kyle was able to get out and began running down the street. Riley went after Kyle and shot him in the back while he was still in handcuffs, according to police.