The incident took place when the 7-year-old girl had gone to attend a marriage ceremony along with her parents at a farm house last night, SHO Haridayal Singh Yadav said.
The girl had gone to the washroom and in the meanwhile one Ashish who was in an inebriated condition barged inside and caught hold of her, he said.
When the girl raised an alarm, other bystanders rushed inside the washroom and thrashed the youth.
The victim's father then informed the Police Control Room following which the Indirapuram Police rushed to the spot and arrested the accused, the SHO said.