The accused was violating the ban on photography and videography in the temple for security reasons, the officials said.