HOUSTON (KIAH) — A barricade situation with a heavy SWAT presence in in west Houston ended with a man hospitalized.

Houston police SWAT team was deployed as someone has barricaded themselves inside an apartment at 2530 Yorktown Street.

According to our news partners at ABC13, the standoff ended when a man crawled out of the apartment after he shot himself in the stomach with a pistol. He was then taken into an ambulance around 5:30 a.m. and taken to a hospital. His condition is “very critical,” investigators said.

Police said the incident began around 2 a.m., when the man was yelling and causing a disturbance in the apartment complex. HPD officers were called, but the man went inside his apartment, then fired a rifle four times, hitting a woman in the foot inside the apartment across the way.