FLOWER MOUND, Texas (AP) — Three officers were shot and wounded Wednesday night while answering a report of a suicidal person in a Dallas suburb, police said.

The three officers were responding to a 911 call at about 7 p.m. Wednesday at a house in a Flower Mound residential neighborhood about 25 miles (40 kilometers) northwest of Dallas. According to a police statement, they were trying to contact the man, who was alone in the house, when gunfire erupted from inside.

The officers returned fire, but police had no contact with the man at the time. Two officers were taken to hospitals in stable condition and had been released by early Thursday morning, the agency said.

The third was treated at the scene of the shooting and cleared. Officials said all three officers were "doing well.”

The scene remained active Thursday morning. The department urged people to continue avoiding the area and said law enforcement was “still working toward a peaceful resolution.”

Read More: Do You Know Any of These Criminals on Louisiana's Most Wanted List?

KEEP READING: Here are the best places to retire in America