An Atascocita, TX, man engaged in a shootout with four constable deputies Tuesday morning, wounding two, Harris County Deputy Thomas Gilliland said.

The resident was also wounded in the gunfight, and sustained 22 entry and exit gunshot wounds, according to the Harris County Constable Precinct 4.

Constable Mark Herman identified one of the deputies as Christopher Gaines and said he was flown to the hospital. The deputy, who has been with the department for two years and is assigned to its East District Patrol division in Humble, is currently in stable condition, Herman said.

Another deputy who was wounded, Deputy Faniyi, was struck in the head by a shotgun pellet and received nine stitches, according to the constable's office.

The resident was shot multiple times by the four deputies, Gilliland said. He is in serious condition and is expected to survive. He will face four counts of aggravated assault on a police officer, Gilliland said.

The shooting happened around 2:50 a.m. Deputies arrived in response to a phone call from man in his 20s who sounded suicidal, Gilliland said. The deputies tried to make contact with the man, and after the second attempt, he came out with a shotgun, the Houston Chronicle reports.