CROWN POINT — A South Bend man who tried to force his way into a house in Hobart with two other men, resulting in one man's shooting death, pleaded guilty Thursday to attempted armed robbery.

Trenton J. Tharp pleaded guilty Thursday in Lake Criminal Court to attempted armed robbery, a level 3 felony. The offense is typically punishable by three to 16 years prison, but parties agreed Tharp would be sentenced to seven years in the Indiana Department of Corrections.

Tharp, 29, was charged July 27, 2017, in Lake Criminal Court with felony murder, two counts of attempted murder and several other felony offenses on allegations he plotted with two men — Jordan Davis and Anthony J. Crenshaw — to break into a house in the 800 block of East Sixth Street in Hobart.

Crenshaw allegedly told authorities the men believed the house had a safe containing dope and cash.

The robbers sneaked onto the property the night of July 24, 2017, but their plans were thwarted after the homeowner spotted them hiding near the residence, records state. The men allegedly tried to force open the front door, and Davis was fatally shot by one homeowner, who was shot and wounded by Davis.

Davis, 28, was a resident of Indianapolis.

Tharp is scheduled to be sentenced Jan. 17.

Crenshaw, 22, of Indianapolis, remains charged with murder in the robbery. He is scheduled for a Dec. 19 hearing.