A 51-year-old man was arrested by Petaluma police early Sunday morning after he allegedly broke into the Mary Isaak Center homeless shelter and threatened to kill a resident there.

Police said Keith Service, who had also been a resident at the center, left at 2 a.m. and was told he could not come back in the middle of the night.

Responding at 2:30 a.m. to a call from the center, police said they found Service half in and half out of a window he had broken with a large knife.

He then threatened to kill a resident of the room he was trying to enter when officers arrived, police said.

Service was arrested and transported to the Sonoma County Jail pending charges of assault with a deadly weapon and vandalism.