The police said they acted on information that the home in a village in the Bareilly district was being used as a temporary madrasa.