A scene from “Quantico.” (Guy D'Alema/ABC)

NEW DELHI — When Priyanka Chopra bagged a role as the protagonist of an American television show, she was showered with praise in her native India for making a leap into the Western entertainment industry that few other Indian actresses had.

But a recently aired episode of the show, “Quantico,” has angered many Indians. In it, her character, a young FBI agent named Alex Parrish, foils a plot by Indian nationalists to carry out a nuclear attack in Manhattan and frame Pakistanis for it days before a summit on Kashmir — a Himalayan territory that both India and Pakistan claim as their own and have fought three major wars over. Chopra's character thwarts the plot after noticing a Hindu symbol — the rudraksha — on a chain worn by one of the terrorists.

To many in India, the plot twist — implicating Indians in a terrorist act, especially over the touchy issue of Kashmir — amounts to a betrayal by Chopra, whom many here see as a quasi-ambassador for India in the West.

The uproar over the episode comes as India's government is trying to publicly distance itself from extremist Hindu organizations.

Under Prime Minister Narendra Modi’s government, Hindu nationalism has flared and right-wing Hindu nationalist groups have been accused of committing acts of violence, especially against India's minority Muslim population.

Recently, a member of Modi's Bharatiya Janata Party offered a bounty for beheading a top Indian actress for starring in a movie that he believed would depict a Hindu community negatively.

Modi was also criticized in 2017 for appointing as the leader of India’s largest state a Hindu monk who in the past has been quoted as saying, “If they [Muslims] kill one Hindu man, then we will kill 100 Muslim men.”

But many argue that Pakistani terrorism has no equivalent in India. “Wow. Power of the global jihad industry. Tainting Hindu nationalism through to cover up for world’s greatest terror exporter, Pakistan. Amaze. ” tweeted Abhijit Majumder, a prominent Indian journalist.

“Have the makers of 'Quantico' outsourced scriptwriting to Digvijaya Singh?” quipped Anuj Dhar, an Indian author, referring to an Indian politician known for discouraging belligerent statements against Pakistan.

Chopra, who has appeared in more than 50 movies, mostly in Bollywood, faces huge pressure to depict India positively abroad. She was trolled in India when she visited a Rohingya refugee camp in May for spotlighting the suffering of Muslims rather than visiting persecuted Hindus. She was also recently criticized for baring her legs in a meeting with Modi, with many saying online that her wardrobe choice at the meeting offended conservative Indian sensibilities.

Chopra has spoken about wanting to break stereotypes about India. In 2014, she told the Guardian, “We don’t talk like Apu from ‘The Simpsons,’ and there's more to the world's biggest democracy than henna and sparkly clothes.”

ABC Studios and the executive producers of the show released a statement in response to the uproar over the episode, clarifying that Chopra had no role in writing or directing the show: “ABC Studios and  the executive producers of ‘Quantico’ would like to extend an apology to our audience who were offended by the most recent episode, ‘The Blood of Romeo.’ The episode has stirred a lot of emotion, much of which is unfairly aimed at Priyanka Chopra, who didn’t create the show, nor does she write or direct it. She has no involvement in the casting of the show or the storylines depicted in the series.”

“Quantico’ is a work of fiction. The show has featured antagonists of many different ethnicities and backgrounds, but in this case we inadvertently and regrettably stepped into a complex political issue. It was certainly not our intention to offend anyone,” the statement said.

The episode at issue aired Friday. In May, ABC canceled “Quantico” because of low ratings.

Read more:

Modi’s party picks Yogi Adityanath, strident Hindu nationalist priest, as leader of India’s biggest state

Outraged women threaten mass suicide over this Bollywood film

Bollywood star drops event with Ivanka amid death threats over film