Indian police have arrested three Muslim students and a teacher for celebrating the Pakistan cricket team's crushing victory over arch-rivals India at the Twenty20 World Cup, officials said Thursday.

The students, originally from Indian-administered Kashmir, were taken into custody on Wednesday in Agra city in the northern state of Uttar Pradesh for "promoting enmity" and disrupting religious harmony, police inspector Pavindra Kumar Singh told AFP.

The case was lodged after right-wing Hindu nationalist groups barged into the Raja Balwant Singh Engineering Technical College demanding the arrest of the three students, according to press reports.

Video footage shared on Twitter showed several people described as lawyers shouting "Down with Pakistan, Hail India" as the trio were being led out of court into a police van. AFP could not independently verify the footage or when it was shot.

The Times of India said two more people were arrested for displaying pro-Pakistan slogans in Uttar Pradesh.

The office of Uttar Pradesh's Chief Minister Yogi Adityanath tweeted Thursday that "those celebrating Pakistan's win will be charged with sedition".

Also on Wednesday, teacher Nafeesa Attari was arrested in Udaipur in western India for posting "we won" on her WhatsApp status after Pakistan routed India on Sunday in Dubai. She was later released on bail.

Attari, who was also dismissed from her job, apologised for her conduct in a video message seen by AFP, saying she never intended to hurt anyone's sentiments.

"I am an Indian and I love my country. I love India as much as anyone else does. As soon as I realised I have made a mistake I deleted my post," she said.

Around 300 students burst into celebrations in Kashmir after Pakistan crushed India in the high-octane contest in Dubai
Around 300 students burst into celebrations in Kashmir after Pakistan crushed India in the high-octane contest in Dubai AFP / Aamir QURESHI

The arrests came after police launched an investigation into several hundred students who burst into celebrations in Kashmir following the T20 clash watched by millions across South Asia.

Anti-India sentiment is widespread and deep in Muslim-majority Kashmir, a Himalayan territory claimed in its entirety by both India and Pakistan.

Police are reportedly looking to book the "ringleaders" of the Kashmir celebration under harsh anti-terror legislation that allows suspects to be held for six months without charge.

Officers also detained for questioning six residents in the Jammu region of the territory after a video emerged on social media showing them supporting Pakistan's cricket team.

Also in Jammu, a government medical college sacked a female technician on Thursday for celebrating the win on social media.

On Monday, a group of Kashmiri students in the northern state of Punjab reported being attacked after they celebrated Pakistan's victory.

Analysts say right-wing Hindu groups have been emboldened and that the space for dissent has shrunk since nationalistic Prime Minister Narendra Modi stormed to power in 2014.

Despite their mutual love for cricket, the nations' political enmity means they now only play against each other at international tournaments. Pakistan's win on Sunday was their first in 13 attempts at a World Cup competition.

In the aftermath, celebratory gunfire erupted in the Pakistani cities of Islamabad and Karachi. India's only Muslim player, Mohammed Shami, was subjected to a storm of social media abuse.