Prime Minister Narendra Modi of India responded to the attacks by authorizing retaliatory strikes against Pakistan and has tried to isolate the country diplomatically, pulling out of a regional economic conference and using a summit meeting in New Delhi that included the Russian, Chinese and Brazilian heads of state last weekend as a platform to attack the Pakistani government.

Image The Indian film director Karan Johar in 2008. He said this week that he would no longer use Pakistani actors in his films. Credit... Max Nash/Agence France-Presse — Getty Images

The tension is likely to increase in the coming months as Mr. Modi’s Bharatiya Janata Party faces an election in India’s most populous state, Uttar Pradesh, where nationalism — specifically, tough talk on Pakistan — is quickly replacing economic development as the party’s election platform.

That tough talk has been reverberating through the arts.

Pakistani musicians have long been a mainstay of Bollywood, whose films and songs are also hugely popular across the border in Pakistan. And Pakistani actors have recently entered Bollywood amid the growing popularity in India of Pakistani-based television serials. But those cultural ties are being cut.

The Pakistani ban on Indian shows goes into effect on Friday. The government acted on a recommendation from the Pakistan Electronic Media Regulatory Authority, and Pakistani officials said it was in response to escalating curbs on Pakistani films and actors in India. The license of any TV network or radio station that does not comply will be suspended, the regulating authority said.

This week, a leading Indian film director, Karan Johar, released a video in which he praised the Indian Army and said he would no longer use Pakistani actors in his films. The move was prompted by the decision of one of India’s biggest groups of cinema owners not to show films with Pakistani actors, partly targeting the planned release on Oct. 28 of a film by Mr. Johar starring a Pakistani actor.