Nashua police said they were sent to the Radisson Hotel after family and friends of Gary McKeon, 47, of Billerica, Mass., told them McKeon had been making threatening and suicidal comments. He was reported to be intoxicated and armed with a firearm.

Prosecutors said McKeon yelled at police when they arrived at the hotel, saying, "Come through the door, and I will shoot you in the head and then kill myself."

Police evacuated guests from the fourth floor. Jordan McNally said she was napping with her 20-month-old son and boyfriend when they got a knock at the door, and then a police officer burst into the room.

"He just said, 'Get your child and get out of here,' and there's two cops that were facing double doors that were closed and had their guns up," McNally said.

Police said McKeon fired four shots while in the hotel. He is also accused of pointing a firearm toward police, but no one was injured.

McKeon is a detective with the Massachusetts Bay Transportation Authority. The MBTA said he has been on leave since his December arrest on a charge of domestic assault involving his girlfriend.

"It's my understanding that the defendant is out on bail for a domestic charge out of the commonwealth of Massachusetts, which would mean that he was not supposed to possess a firearm," said prosecutor Evey King.

McKeon was taken into custody after a seven-and-a-half-hour standoff.

During McKeon's arraignment, Judge James Leary said that if the charges are true, McKeon is a danger to the public. He asked McKeon if he intended to harm himself.

"Not at this point sir, but I do need some help," McKeon said. "I definitely need help."

Bail was set at $250,000. He is scheduled to return to court Feb. 25 for a probable cause hearing.

A maid who cleaned the home of former New England Patriots player Aaron Hernandez has testified at his murder trial that she saw him "messing with" the security camera in his basement the day after the killing.