Four Montgomery County sheriff’s deputies were shot and a child was wounded Friday during a standoff at a home north of Houston. The suspect, Buck Caples, 45, died, authorities said.

Sheriff Wesley Doolittle said all four deputies were hospitalized. Two had injuries serious enough to require surgery. A fifth officer was struck but was protected by body armor.

Authorities believe the child was injured when Caples fired a shot inside the home in the Artavia neighborhood, about 25 miles (40 kilometers) north of Houston, Doolittle said. Officers entered after the shot, found Caples barricaded in a room and exchanged gunfire with him, he said.

Doolittle said Caples had broken into a home where a 34-year-old woman and three children were living. Authorities believe Caples had a previous relationship with the woman, the sheriff said.

The Montgomery County sheriff’s department said in a social media post that multiple units, including a SWAT team, responded Friday to a report of a barricaded suspect. The department said there was no danger to the public.

The department did not initially say how many deputies were injured. The Montgomery County Hospital District did not immediately return telephone and email messages from The Associated Press seeking to confirm the number of officers injured and the extent of their injuries.