The matter came to light when the priest opened the door of the Karivaradaraja Perumal Temple for offering prayers, police said.