A man in Bucks County, Pennsylvania was shot on Sunday after he allegedly masturbated on a woman’s balcony, broke into her apartment, and made off with her dog.

“He was touching himself inappropriately on the second-floor balcony when he was confronted by the female,” the Bensalem Police director of public safety told television station WCAU.

After he was discovered by the female resident, the man allegedly broke through the glass of her balcony door and grabbed her dog, the local station reported. He then jumped out her window, falling two-stories down, reportedly with the animal in tow.

The assailant’s run met its end when he tried his luck on another apartment on the first floor, police told the station. He confronted two residents, one of whom shot the burglar, according to WCAU.

Despite the man’s gunshot wound, he allegedly continued to fight with the residents until police arrived. The man was reportedly rushed to hospital and treated for his injuries.

h/t Gawker