YONKERS, N.Y. (AP) – A homeowner used a kitchen fire extinguisher to beat back an intruder before catching him early Thursday, police said.

The homeowner woke up around 1:30 a.m. when he heard a man banging on the kitchen door and fumbling with the doorknob while trying to get in, police said. When the homeowner opened the door to see who was there, the man barged in.

The homeowner, fearing for the safety of his wife and children upstairs, grabbed the fire extinguisher, sprayed the intruder with foam, smacked him over the head and held him on the floor, said police, who arrested the thug and took him to a hospital.

The intruder, who was treated for minor injuries, was scheduled to be arraigned late Thursday in Yonkers City Court on a felony charge of second-degree attempted burglary, police said.