HOUSTON — Authorities say a Harris County sheriff’s deputy has shot and wounded a county jail inmate who was at a Houston hospital for treatment.

Houston police spokesman Kese Smith says the prisoner fashioned a piece of metal from headphones given to patients and used it as a weapon to threaten a medical student. When he refused to drop the metal piece and said he intended to harm the student, the deputy working security on the hospital floor fired, wounding the inmate twice in the chest.

Sheriff’s department officials identified him as 46-year-old Ricky Lynn Hall. He underwent surgery after the Thursday morning shooting at Ben Taub Hospital.

Records show Hall has a long criminal record and was taken into custody last week as a parole violator.

No one else was hurt.