A pedophile in Roanoke, Virginia has been left with “life-altering” injuries after climbing through the bedroom window of two young children, only to be greeted by their pet bulldog who bit his penis off.

52-year-old Martin Freeman climbed into the 1st-floor window of the small family home into the room where the two young sisters were sleeping after passing by and seeing the open window.

After climbing into the room of the 3 and 6-year-old sisters, Freeman got more than he bargained for when family’s Pit Bull Terrier leapt to the girl’s defence. The dog severed the rapist’s genitals clean off and swallowed his penis and testicles.

The commotion alerted the children’s parents who called emergency services. According to the father of the children, after calling the police, the attacker was in so much pain that he didn’t attempt to make an escape.

Freeman was rushed to a nearby hospital where doctors treated his wounds but said they were unable to rescue his genitalia after it had been swallowed by the pet bulldog. Hospital staff said they were able to “patch him up,” and while he lost a lot of blood and was clearly in a lot of pain, he would survive. They added that although his injuries were no-longer life-threatening, they were “certainly life-altering.”

The family, who can’t be named, said they are just thankful their dog was there to protect the young girls from the attacker. In a statement, local investigators said the family was “lucky” their pet was able to protect them from a potential sexual assault, adding: “We are currently investigating a complaint of an attempted sexual assault and will be taking a suspect into custody as soon as he has recovered from his injuries. Given the extent of those injuries, however, we can assure the public he no longer poses a threat to children or indeed anybody.”