No fewer than six teachers have been arrested by Kenyan police over a video of primary school pupils simulating sex as punishment.

The video which had since gone viral has ignited an uproar on social media with netizens calling for the arrest and prosecution of the teachers.

As seen in the video clip obtained by Theliberationnews, the teachers indulged themselves in watching four boys in school uniform simulating sexual acts under a tree in the school compound.

The six were heard chatting in the background of the 29-second clip and bursting into laughter as one shirtless child wipes tears from his face.

Police said the clip “exposing school pupils in an indecent act” was recorded in Nyamache, a rural town, some 300 kilometres (186 miles) from the capital Nairobi.

Six teachers — five women and a man — have been arrested and “are assisting in (the) investigation”, police said in a report seen by AFP.

“Other preferable charges” and a report would follow, it added.

The incident sparked fury on social media with many calling for action in the largely conservative, Christian nation.

“This is so humiliating. Adults need to leave children alone! What even is this???” one user posted on Twitter.

“This is really the worst that could happen to these kids. Did these teachers think about the trauma they (are) giving these kids?” said another.

Education Minister Ezekiel Machogu said the teachers will face disciplinary action and would be dismissed if found guilty.

According to Kenya’s sexual offences act, a person found guilty of compelling another to engage in an indecent act faces a jail term of not less than five years.