An angry mob attacked a man after he had sex with a dog. The incident took place in Mbondoni, Kenya, on Wednesday.

The man, identified as 35-year-old Boniface Mutuku, took the canine to a homestead and sexually assaulted it several times Monday. He then killed the animal by choking it. The incident came to light Wednesday when the neighbors noticed a foul stench and entered the home only to find the dead canine inside. The man was under the influence of drugs when he committed the crime.

Confirming the incident, police said the incident came to light “after some neighbors noticed a foul smell since the homestead, which belongs to his grandmother, is abandoned."

The villagers then tried to lynch the man. However, police reached the scene and rescued him. The man was taken into custody and confessed to the crime during interrogation. He was scheduled to appear in court Thursday.

Meanwhile, neighbors told the investigators that the accused was mentally challenged and that they had previously caught him having sex with a sheep.

“The man is suspected to be mentally disturbed but a mental checkup will give us the right information,” a police officer said, adding that the investigation into the case was ongoing.

handcuffs
This image shows a pair of handcuffs at the Commissariat de Police Nationale (National Police Station) in Alfortville, France, Nov. 21, 2016. THOMAS SAMSON/AFP/Getty Images