A man accused of shooting a deputy sheriff in the cheek has pleaded guilty to a charge of aggravated assault.

Matthew D. Lovell, 19, was originally charged with attempted second-degree murder. He pleaded guilty to the reduced charge, a third-degree felony, as part of a plea bargain with the Salt Lake County attorney's office.He will be sentenced Dec. 10 before 3rd District Judge Raymond Uno.

Lovell was charged with firing several shots from inside his Salt Lake County home at 1733 E. Mary Circle the night of Aug. 10. Salt Lake County deputy sheriff Craig Carroll was hit just below his right eye as he crouched beside a pickup truck after hearing shots fired from inside the house. He was the first officer to respond to a report of a fight in the area.

Deputies said Lovell barricaded himself inside the house, then tried to escape by climbing out a window and onto the roof. When he jumped from the roof into the back yard, deputies arrested him.

Lovell said he held the gun to his own head and then began shooting wildly at the walls and windows, according to a transcript read during a preliminary hearing.