ST. CLOUD -- The jury trial for a man accused in a home break-in, robbery and assault has been canceled after he agreed to a plea agreement.

Twenty-five-year-old Benjamin Lenoir has pleaded guilty to aiding and abetting first degree aggravated robbery, aiding and abetting first degree burglary and being a felon in possession of a gun. In exchange for the guilty pleas all other counts, including attempted first degree murder were dropped.

Lenoir and Andre Kidd broke into a St. Cloud duplex in March 2013 looking for money and drugs. A man living at the home was attacked and taken to the hospital with what appeared to be a gunshot wound to the head.

A judge ruled in Kidd'as trial that the victim was pistol whipped and the gun likely fired as a result of the gun striking him.

Kidd was convicted on the same charges Lenoir has pleaded guilty to and was found not guilty on the attempted murder charges.

Lenoir was sentenced to six years and nine months in prison while Kidd was sentenced to six-and-a-half years behind bars.