Dozens of security agents who had gathered outside the mosque during the prayers, pulled out batons as soon as the chants broke out and detained at least two people, beating one who resisted and kicking him in the nose.