A gunman killed two people and wounded four others, including three police officers, before taking his own life at a home in the Dallas-Fort Worth area, police said Sunday.

Wounds suffered by the four survivors were not life-threatening, police said.

The case happened about 6:45 p.m. Saturday when officers were answering a report of shots fired in a Haltom City neighborhood, Sgt. Rick Alexander said Sunday. Killed at the reported address were Collin Davis, 33, and Amber Tsai, 32, Alexander said.

Tsai was found dead inside the house, while Davis was found dead outside, Alexander said. An older woman who called 911 but was not otherwise identified also suffered a non-life-threatening wound, he said.

Security video shot from a neighboring house screened at a Sunday news conference showed three officers approaching the address when rapid gunfire erupted, wounding three officers. Officers returned fire as the gunman fled the house through a back door. Tracked by air, the gunman identified as 28-year-old Edward Freyman shot himself, Alexander said. Freyman was found with a “military-style rifle” and a handgun, he said.

“This was an ambush situation,” Police Chief Cody Phillips said, adding that if officers “were not prepared for the situation, it would have been a lot worse.”

The gunman and the two people he killed knew one another, but their relationships were not immediately clear.