TEHRAN, Iran (AP) — Shortly before the European Union envoy met Iran’s nuclear negotiator in Tehran on Wednesday in a last-ditch attempt to salvage Iran’s nuclear deal with world powers, Iran’s Intelligence Ministry announced it had detained two Europeans.

Photos surfaced of the EU coordinator of the nuclear talks, Enrique Mora, looking stern as he shook hands awkwardly with Iranian negotiator Ali Bagheri Kani, who beamed and waved.

The Intelligence Ministry gave scant details about the detained Europeans, saying only that they shared the same unidentified nationality and sought to “take advantage” of the protests springing up in several Iranian provinces as laborers and teachers press for better wages. The Europeans were held on vague charges of planning to cause “chaos, social disorder, and instability,” authorities said.

The provocation came as Tehran vows to execute an imprisoned Swedish researcher later this month — a case that coincides with a landmark war crimes trial of an Iranian official in Sweden.

And, in yet another escalation, Iran’s powerful Revolutionary Guard reportedly shelled Kurdish targets in northern Iraq. A local official confirmed the strike, saying it caused no casualties.

The events could have obviated negotiations with the visiting EU coordinator. Nonetheless, the schedule proceeded. There were no immediate details from Kani’s meeting with Mora, who has sought to break the deadlock that has prevailed since talks to revive the nuclear deal paused in late March.

Four years ago, former President Donald Trump pulled the U.S. out of the deal, which granted Tehran sanctions relief in exchange for strict curbs on its nuclear program. Talks in Vienna to revive the accord have apparently stalled over an Iranian demand that Washington lift a terrorist designation on the paramilitary Revolutionary Guard.

Despite the deadlock, officials say the urgency to close the deal has grown. Iran’s nuclear program has rapidly advanced, with its stockpile of enriched uranium at some 3,200 kilograms (7,055 pounds) earlier this year compared to 300 kilograms (661 pounds) under the nuclear deal.

Some of that uranium has been enriched up to 60% purity — a short technical step from weapons-grade levels. Iran has stopped the International Atomic Energy Agency from accessing its surveillance camera footage, worrying nuclear nonproliferation experts.

Meanwhile, Russia’s war on Ukraine has increased European interest in sanctioned Iranian crude. Punitive sanctions on Moscow are driving the continent to seek alternatives to Russian oil to curb rising energy prices. Iran says it’s selling its crude despite sanctions and benefiting from the windfall.

Iran’s Foreign Minister Hossein Amirabdollahian offered his support for ongoing negotiations.

“Talks for the lifting of sanctions will be pursued in the right direction with the aim of reaching a good, strong and lasting agreement and observing Iran’s red lines,” he wrote on Twitter. However, Iran’s hard-liners have criticized any concessions on the designation of the Guard.

Despite repeated Iranian claims that a separate but closely linked deal would unfreeze billions of dollars in assets tied up abroad and result in a prisoner swap with America, the State Department has repeatedly said that no such agreement is imminent.

The reported imprisonment of the two Europeans on Wednesday has revived long-standing accusations from rights groups that Iran uses foreigners and dual nationals as diplomatic pawns to gain leverage in its negotiations with the West. Tehran denies this.

As Swedish prosecutors reported they would seek life imprisonment for Hamid Nouri over Iranian war crimes allegedly committed during the final phase of the Iran-Iraq War in the 1980s, Iran announced plans to execute Ahmad Reza Jalali, the imprisoned Swedish researcher, and separate reports emerged that authorities arrested a Swedish tourist in the country.

It was not immediately clear whether the Swedish tourist was one of the two Europeans detained Wednesday.

Iran’s Intelligence Ministry alleged the two Europeans were “expert” foreign agents hired by the unnamed European country, adding that Iranian authorities had pursued them from the “moment of their arrival” and tracked their attempts to mobilize teachers’ protests and assist illegal unions.

Meanwhile, Iran’s Guard said it struck a “terrorist base” near Irbil in Iraqi Kurdistan, according to the semiofficial Tasnim news agency. Projectiles struck uninhabited areas in northern Iraq home to Iranian Kurdish opposition parties, Ihsan Chalabi, a local official told the Irbil-based Rudaw news agency. No damage or injuries were reported from the strike, he said.

The Guard in the past has fired missiles at Kurdish opposition groups in the north of Iraq, stoking regional tensions.

___

Associated Press writers Isabel DeBre in Dubai, United Arab Emirates, Jon Gambrell in Lviv, Ukraine, and Samya Kullab in Baghdad contributed to this report.