A guest at the downtown Minneapolis Hilton on Thursday brandished a weapon, holed himself in his room on the 22nd floor and came out on his own accord after five hours of negotiating with police, officials said.

Three nearby floors were evacuated during the incident, which ended with the man in police custody. Authorities recovered a handgun from the room.

The man has since been booked at the Hennepin County jail for probable cause second-degree assault.

Around 2:30 p.m., Minneapolis police responded to a report of a threatening man who was possibly armed. A SWAT negotiation team arrived and eventually talked the man into coming out. The situation was peacefully resolved just before 8 p.m.

The hotel, a joint hospitality host of the annual convention for the National Association of Black Journalists, was housing dozens of members of the media. Police repeatedly told the throngs of reporters there was “no threat to public safety.”

Police said the man’s intentions remain unclear. An investigation is ongoing.