NEW HAVEN, Conn. (CBSNewYork) — Two police officers in Connecticut were recovering from gunshot wounds after responding to a domestic violence incident.

Police got into a standoff with the gunman that lasted for hours, and on Saturday night some streets were still blocked off.

Fortunately, the officers were doing okay, TV 10/55’s Erin Logan reported. The female victim was in critical, but stable condition. Police said she was shot a number of times by her husband.

It happened on Elm Street in New Haven.

Witnesses and police said it could have been a lot worse — with lives lost.

“I seen him shoot the door. I seen the pow pow, I couldn’t move,” neighbor Joanne Lathrop said, “I’m waving her to come in and she’s mouthing, ‘open up the door.”

Lathrop kept her eye on the alleged shooter, and ordered her aunt to open the door immediately.

“She couldn’t talk. She was shocked. She didn’t say anything,” Robin Tinney Anderson said.

Anderson said her 51-year-old neighbor — a retied corrections officer – was bleeding all over the place. Police said the woman was shot in the hand, arm, back, and chest by her husband 51-year-old John Douglass Moore.

As police responded, the scene on Elm Street in New Haven got even more dangerous.

“We have two cops shot over here. i need units. I need EMT right now,” a call for assistance said.

Police Chief Anthony Campbell said Monroe shot two officers.

Eric Pressino suffered a graze wound to the arm, and Scott Shummway was struck in the hand.

“Once removed from the scene, SWAT was advised, and called in, and a command post was set up,” Campbell said.

Several neighboring police agencies were also on scene for hours. People like Anderson and Lathrop were evacuated from their home or asked to stay put by police.

Four hours passed.

“They encounter the suspect, and there was an exchange of gunfire. The suspect was shot by our SWAT members,” Campbell said.

“If you’ve never experienced nothing like this before, it’s scary, and I never want to experience it again,” Anderson said.

At the police department Campbell applauded the many agencies involved.

“Today could’ve gone a different way,” he said.

Residents echoed that.

“I give them their credit today, yes I do. Thank you New Haven Police Department,” Anderson said.

Connecticut Governor Dannell Malloy shared those sentiments as well.

“Today’s events serve as a reminder of the dangers our law enforcement officials face while protecting our communities. Police officers show up for work every day with the intent to serve and protect, and we are grateful for their service. While this remains an active investigation and we do not presume to know all the details regarding this particular situation, we are also reminded today of our moral obligation to work to prevent domestic violence and the many needless tragedies that occur as a result,” said Governor Malloy. “Our thoughts are with the injured responders, Officers Eric Pessino and Scott Shumway​, the victim, as well as all their families and friends. We wish each of them a full and quick recovery.”

Police would not comment on any history of domestic incidents at the home, but neighbors said cops had never been there before.

Connecticut State Police and the State’s Attorney’s Office are investigating.