GETTYSBURG, Pa. (AP) — Authorities say a man shot by a state trooper after a standoff at a county prison in central Pennsylvania has died.

The York County coroner’s office said Saturday that 31-year-old Jess Leipold was pronounced dead at 2:40 p.m. Friday after being shot Thursday afternoon at Adams County Prison.

READ MORE: Ericka Brair Killed In 'Crime Of Passion' Day Before She Was Due To Testify In Court

Authorities said Leipold, dressed in camouflage, rode his bicycle to the prison near Gettysburg and displayed a gun to a guard in the lobby.

READ MORE: Ocean County Couple Among Those Missing In Building Collapse Near Miami

District Attorney Shawn Wagner said he fired six or eight times into the air and onto the ground during a half-hour standoff just outside the prison entrance, and was shot after he shoulder a rifle and pointed it at the entrance.

Wagner said his preliminary investigation suggests that the shooting was justified and that “police showed restraint.”

MORE NEWS: Philadelphia Board Of Education To Officially Rename Andrew Jackson Elementary School

(Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)