AMARILLO, Texas (AP) — A Texas Panhandle shelter worker who wrestled a gun away from a man holding hostages was then shot by a police officer who mistook him as the suspect.

Amarillo police say they received a report Wednesday of a man holding dozens hostage in the chapel of Faith City Mission, a shelter serving the indigent and others.

An officer confronted a man inside holding a gun and shot him. Police say the investigation revealed the man who was mistakenly shot had moments earlier fought with the gunman and took away his weapon.

Police say the worker remained hospitalized Thursday with injuries not considered life-threatening.

Authorities say 35-year-old Joshua Len Jones is being held at the Potter County jail on multiple counts of aggravated kidnapping.

Online jail records don't indicate an attorney who's representing him.