Scores of students preparing for competitive exams had made an abortive bid to stop a passenger train. However, alert GRP and RPF personnel foiled their attempt to stop the train.
Six policemen have also been suspended with immediate effect for using unnecessary force during the incident which took place on Tuesday.
A letter petition has been filed in the Allahabad High Court by five lawyers, seeking a judicial probe in the lathi charge on students.
A senior police official told reporters that it appears that the accused had taken 'money from some political parties' to create unrest.
The two people arrested in connection with the case have been identified as Pradeep Yadav and Mukesh Yadav while the search for another suspect, Rajesh Sachin, is on, the police said.
Rajesh Sachin had made "inflammatory remarks" on social media.
Senior Superintendent of Police (SSP) Ajay Kumar said a video of the incident had surfaced on social media, in which some policemen were seen using unnecessary force.
Those policemen have been identified as sub inspectors Rakesh Bharti, Shailendra Yadav, Kapil Kumar Chahal and constables Mohammad Arif, Achhe Lal and Durvesh Kumar. They have been suspended with immediate effect and departmental action is being taken against them, he said.
The SSP said there is no quarrel between police and students and those who play with students' future will not be spared.