HASTINGS, Neb. (AP) — A Hastings man initially charged with murder has been given 38 to 40 years in prison.

Adams County District Court records say 21-year-old Deante Mullen was sentenced Tuesday. He'd pleaded guilty to attempted robbery and being an accessory to a felony after prosecutors dropped the murder charge.

Prosecutors have said Mullen and another man, Daniel Harden, tried to rob Jose Hansen on Sept. 11, 2017, and Hansen was shot in the back.

Harden was acquitted of murder and weapons charges but convicted of robbery conspiracy. He was sentenced in January to 40 to 44 years.