On getting this information, the Basic Shiksha Adhikari (BSA) Virendra Pratap Singh rushed to the school and asked villagers to clear the premises of the cattle.
As the terrified students locked themselves in their classes, police had to be called in to pacify agitated farmers and the cattle were later moved out.
The BSA instructed the Station House Officer (SHO) of Hayatnagar police station to register an FIR against the villagers who put the children's life in danger.
Additional BSA Rajendra Prasad said the villagers broke open the locked main gate of the school and moved animals inside the premises.
"As a large number of cattle entered the school premises, there was chaos all around and children playing in the ground ran for shelter.
According to the Headmaster Govardhan Singh, they somehow managed to lock around 80 children in classrooms to save them from cattle. The school has around 334 children enrolled with it.