A police standoff with an armed suspect in a residential neighborhood ended peacefully after about two hours.

Police were called to the home just before 11 a.m. Sunday after a family disturbance escalated and a man involved allegedly began firing a gun. The house is located in the area of Montebello Drive and Galena Drive.

Gunshots were still going off as officers arrived, said CSPD Lt. Steve Noblitt.

"When officers got here, we set up on the house pretty quickly, and as we were on scene we heard shots being fired."

Police learned the family was still inside with the suspect and got them out.

"Once we had him contained in the house, we were able to talk to him on the phone," Noblitt said.

At first, the suspect allegedly refused to comply with officer orders to come out of the home. Even after finally doing so, Noblitt said the suspect didn't surrender right away.

(Watch the video above by reporter Olivia DaRocha for more on how the standoff unfolded.)

"He ultimately ended up coming out, he didn’t end up peacefully surrendering, so we did have to use some less lethal force."

Police later confirmed it was a canine who helped detain the suspect.

Once in custody, the man was taken to the hospital for treatment of injuries sustained during the standoff, then transported to the El Paso County jail. He was identified by police as Matthew Hahn.

"He was dangerous to everybody," Noblitt told 11 News. "... Early on, we knew this could be a deadly situation."

There were no reported injuries to police or the man's family.