A man captured by Cambridge police in Harvard Square pleaded guilty Tuesday to charges of attempted murder and aggravated rape, Middlesex District Attorney Gerry Leone said.

Andrew Burke, 22, of Lowell, was sentenced by Lowell Superior Court Judge Paul Chernoff to 19 to 20 years in state prison followed by 10 years probation with the condition that he is required to wear a GPS monitoring bracelet.

Burke attacked a jogger at about 10 a.m. July 8 on Aiken Street, Lowell, by the Merrimack River, strangled her to the point of unconsciousness, dragged her off the trail into bushes and sexually assaulted her.

“This defendant viciously attacked a young female jogger, strangling her and sexually assaulting her before fleeing the scene, leaving the victim unconscious,” Leone said. “The defendant then attempted to elude arrest, creating alarm within the greater Lowell community.”

Police issued an arrest warrant for Burke that evening. He was arrested July 13 by Cambridge and Lowell police around Harvard Square.

This post was written from a press release.