A late-night standoff in Windsor ended peacefully after an armed man surrendered to police officers.

Maine State Police responded to a report of a 36-year-old man who was armed and despondent at an apartment on Route 32 at about 7 p.m. Wednesday.

He “continues to be evaluated at MaineGeneral,” Stephen McCausland, Maine Department of Public Safety spokesman, said Thursday in an email. He did not release the man’s name.

State police said they took the man into custody at his 475 Ridge Road apartment just before midnight.

“He surrendered to the State Police Tactical Team, after talking with negotiators,” McCausland said. “The man was armed with two guns and was threatening to shoot himself. Four other people inside the apartment left after troopers arrived and several adjoining apartments were evacuated during the standoff.”

Traffic along Route 32 was rerouted around the scene during the standoff.

There is no information yet on whether or not the man faces any charges.

BDN reporter Nok-Noi Ricker contributed to this story.