A Tucson man convicted of second-degree murder and aggravated assault with a deadly weapon was sentenced Monday to 27-and-a-half years in prison in connection to a 2015 shooting homicide and assault in midtown Tucson.

Charles Allen Cole, 26, accepted a plea deal on Jan. 10 in the middle of his trial on more serious charges.

Police arrested Cole and Marcell Cobb, 24, in October 2015 in connection with the shooting death of Michael Oleisky, 42, the previous month in midtown Tucson, according to Arizona Daily Star archives. The shooting occurred on the 2300 block of North Northway Avenue, near Grant and Country Club roads.

According to a court record, Oleisky was found dead after a home invasion. Witness saw two men running from the scene, and a camera caught three men on video fleeing the area.

The next morning another victim, Edward Stewart, reported that Cole had shot him in the leg and robbed him near North Swan and East Fort Lowell roads, in front of where Cole was residing, the record says.

Cole was arrested for the assault and robbery of Stewart. While he was out on pretrial release, he sold a twenty-two caliber rifle to an undercover police officer. The complaint says he told the officer the gun “had one on it,” meaning it was used in a homicide. Tests showed the bullet casings from the homicide and assault both came from the gun Cole sold to the undercover officer.

The other suspect, Cobb, was sentenced in June 2017 to 10.5 years for manslaughter and armed robbery in the shooting death of Oleisky.

Contact reporter Danyelle Khmara at dkhmara@tucson.com or 573-4223. On Twitter: @DanyelleKhmara