Section 130(2) in The Code of Criminal Procedure, 1973
(2)Such Magistrate may require any officer in command of any group of person belonging to the armed forces to disperse the assembly with the help of the armed forces under his command, and to arrest and confine such persons forming part of it as the Magistrate may direct, or as it may be necessary to arrest and confine in order to disperse the assembly or to have them punished according to law.