An inmate died at a hospital early Tuesday after a failed escape attempt in which he grabbed a deputy’s gun and wounded him and was then gunned down as he drove away in a police van.

Deputy Kimsey Gray was transporting four prisoners in chains and leg irons from the Jackson County Courthouse in Jefferson, Ga., when one of them grabbed a gun and shot him, authorities said.