A case was registered under the Protection of Children from Sexual Offences Act, after which the police detained the accused.