Police said a despondent man created a 12-hour standoff Saturday in Brewer, but the incident ended peacefully.

Police Chief Perry Antone said the two residents of an apartment at the intersection of State and North Main streets called shortly after midnight Friday and said a friend who was visiting them became despondent and pulled out a handgun.

The residents had left the apartment, Antone said, and the man, Brandon Ogden, 32, of Levant, would not respond to police attempts to contact him after they arrived at the scene.

Police from surrounding towns were called in, Antone said, and a Maine State Police negotiator arrived to try to talk to Ogden. After that failed, a state police tactical team arrived, Antone said.

Around noon Saturday, the tactical team moved into position to storm the apartment, but after contact was made with Ogden – both over the phone and a public address speaker on a state police armored vehicle – he gave himself up, Antone said.

No shots were fired, the chief said, and no one was hurt during the standoff.

Ogden was charged with criminal trespass and terrorizing and was issued a summons for creating a police standoff, Antone said. Ogden was being held Saturday night at the Penobscot County Jail in Bangor on $7,500 cash bail.

Antone said police aren’t sure why Ogden was despondent and said he appeared to be suffering from “a mental crisis.”