Sheriff Henry Trochesset said the prisoner had ingested some sort of drugs at the Galveston County Courthouse and was taken to the hospital for treatment.
At one point, the prisoner took off running at the hospital. A deputy caught up with the man, and fired his weapon inside Parking Garage No. 2.
The inmate was taken to the emergency center for a gunshot wound. The deputy who fired the weapon was not injured.
RELATED: Prisoner transport company shuts down after inmate escape
Prisoner transport company shuts down after escapee incident
The Texas Rangers are investigating the shooting.