AYER -- An Ayer man who allegedly used a small hammer to hit a man multiple times on the head was deemed a public threat and ordered held Tuesday afternoon in Ayer District Court.

Vincent Maceyka, 33, of Ayer faces seven charges including armed assault to murder, assault and battery with serious bodily injury, violating an abuse prevention order, and threatening to commit a crime, according to court documents.

The victim listened to prosecutors retell the Feb. 6 alleged assault during a hearing to determine if Maceyka was a threat to public safety. He had a bandage on his right hand and scars on his head.

Prosecutors said Maceyka argued with another man at his Ayer home and was asked to leave.

He later returned at about 3:30 a.m. wielding a "miniature sledge hammer" that he allegedly used to strike the man, who was asleep, prosecutors said.

As they struggled, Maceyka allegedly hit the victim on the head with the weapon 11 times, prosecutors said.

The man got away and ran to another house where a neighbor called for police.

Myceyka also allegedly pushed his wife and broke her phone when she tried to call 911, prosecutors said.

Police recovered the weapon at the scene and found Myceyka with blood on his hands and clothes, police records say.

His wife told police the marriage wasn't working out and that Maceyka was staying with his brother in Western Massachusetts.

Maceyka is scheduled to return to court on March 7.