A seven-hour standoff ended peacefully about 2 p.m. Wednesday when six Denver SWAT officers brought a handcuffed man out of a cordoned-off building. He was put on a stretcher and into an ambulance.

The suspect, whose name was not released, “is being evaluated,” said Raquel Lopez, a spokeswoman for the Denver Police Department.

The standoff began before 7 a.m., when Denver police set up a perimeter in the residential area near Santa Fe Drive and West Third Avenue after a man fired shots at officers.

Officers had originally been called to the location around 6:44 a.m. on a complaint of domestic violence, Lopez said.

Dozens of police officers were on scene all day and closed off several blocks in the area. SWAT officers were called in, and several officers were carrying rifles. A large urban-assault vehicle was also on scene. The standoff stalled traffic that had already been slowed by the day’s rain.

Three Denver schools — Denver Center for International Studies at Baker, Fairmont Elementary and Ace Community Challenge Charter — were put on lockdown, said Mike Vaughn, a spokesman for Denver Public Schools.

Mail delivery within a 10-block area of the standoff was rerouted.

Shortly after officers first arrived, the man fired at them. It was not confirmed whether officers fired back.

The man ran back into a building, and a negotiating team was sent to the scene. There were no hostages involved, and no police officers were injured.

The woman involved in the alleged domestic violence was safe, Lopez said, and police were in contact with her during the day.

David Gutierrez, who lives in the neighborhood, was inside a 7-Eleven convenience store when he saw four patrol cars pull up nearby.

As Gutierrez was grabbing a cup of coffee, he heard multiple gunshots.

Then he watched a man sprint to the back of a residential building, where he unsuccessfully tried to jump a fence before sprinting into the building.

“I was thinking ‘Get out of the way, find some cover,’ ” Gutierrez said.

Officers entered the convenience store and told those inside to get to the back of the store.

“The cops did their job,” Gutierrez said. “They got everyone away from the window.”

Gutierrez and about 10 other customers remained in the store until about 10:15 a.m., he said.

About 1:45 p.m., a remote-control camera was sent into the cordoned-off building, later followed by two SWAT officers. About 15 minutes later, the man was escorted from the building by police.