An armed standoff in the Curry County Adult Detention Center in Clovis, New Mexico, ended with the suspect shooting himself.

KAMC News reports, police arrived at the Detention center in response to an inmate with a firearm and a possible hostage situation. Police say this altercation occurred during processing at the jail.

After nearly four hours of negotiations, 28 year-old Wesley Flores pulled out a gun and shot himself.

Flores was transported to a Lubbock area hospital for treatment.