ISLAMABAD, Pakistan — The Pakistani police arrested 25 people in a rural village on Thursday, after the village council ordered a man to rape a teenage girl publicly to avenge the sexual assault of his sister.

This month the council told Mohammad Ashfaq, 20, to rape the 16-year-old girl after Mr. Ashfaq’s family accused her brother of raping Mr. Ashfaq’s 12-year-old sister, the police said.

The case was brought to the attention of the police in Punjab Province after the 16-year-old’s mother reported that Mr. Ashfaq had carried out the rape on July 18 in Muzaffarabad, a village near the city of Multan.

Some members of the council were present at the time of the rape, according to a complaint that the girl’s mother filed with the police.