DUBAI — A U.S. Navy warship fired a warning flare to wave off an Iranian Islamic Revolutionary Guard speedboat coming straight at it during a tense encounter in the strategic Strait of Hormuz, officials said Tuesday.

The incident on Monday involving the Revolutionary Guard and the Navy comes as tensions remain high over stalled negotiations over Iran’s tattered nuclear deal with world powers and as Tehran enriches uranium closer than ever to weapons-grade levels under decreasing international oversight.

Meanwhile, the United Nations’ nuclear watchdog said Iran now plans to enrich uranium through a second set of advanced centrifuges at its underground Fordo facility amid the standoff.

The Cyclone-class patrol ship USS Sirocco and Spearhead-class expeditionary fast transport Choctaw County found themselves in the close encounter with three Iranian fast boats while coming through the Strait of Hormuz to enter the Persian Gulf, the Navy said.

In a video released by the Navy’s Bahrain-based 5th Fleet, a high-speed Revolutionary Guard Boghammar is seen turning head-on toward the Sirocco. The Sirocco repeatedly blows its horn at the Boghammar, which turns away as it closes in. The flare shot can be heard, but not seen, as the Boghammar passes the Sirocco with the Iranian flag flying above it.

The Navy said the Boghammar came within 50 yards of the Sirocco, raising the risk of the vessels running into each other. The overall encounter lasted about an hour, the Navy said.

The Revolutionary Guard’s “actions did not meet international standards of professional or safe maritime behavior, increasing the risk of miscalculation and collision,” the Navy said.

Iran did not immediately acknowledge the incident in the strategic waterway. A fifth of all traded oil passes through the strait.

The Navy separately told the Associated Press that this marked the second “unsafe and unprofessional” incident it has had with Iran in recent months.

On March 4, three Revolutionary Guard ships had a tense encounter for over two hours with Navy and U.S. Coast Guard vessels as they traveled out of the Persian Gulf through the strait, the Navy said. In that incident, the Revolutionary Guard’s catamaran Shahid Nazeri came within 25 yards of the U.S. Coast Guard cutter Robert Goldman, the Navy said.

“The two U.S. Coast Guard cutters issued multiple warnings via bridge-to-bridge radio and deployed warning flares,” the Navy said.

The Navy did not elaborate on why it did not announce the previous incident. The encounter occurred just as an agreement on restoring the nuclear deal looked possible, before talks in Vienna broke down.

Iran and world powers agreed in 2015 to the nuclear deal, which saw Tehran drastically limit its enrichment of uranium in exchange for the lifting of economic sanctions. In 2018, then-President Trump unilaterally withdrew the U.S. from the accord, raising tensions across the wider Middle East and sparking a series of attacks and incidents.

Talks in Vienna about reviving the deal have been on “pause” since March. Since the deal’s collapse, Iran has been running advanced centrifuges and rapidly growing a stockpile of enriched uranium. This month, Iran also removed 27 surveillance cameras of the U.N.’s International Atomic Energy Agency. The agency’s head warned those moves could deal a “fatal blow” to the nuclear deal.

On Tuesday, the IAEA said its inspectors verified Iran was preparing to enrich uranium through a new cascade of 166 advanced IR-6 centrifuges at its underground Fordo facility. Already, Iran has one cascade of IR-6s operating at Fordo, near the holy Shiite city of Qom. They enrich up to 20% purity.

The IAEA said Iran has not told it yet the level at which the second cascade will be enriching. Iran has yet to publicly acknowledge the new cascade.

The 2015 nuclear deal prohibited all enrichment at Fordo. Shielded by mountains, the facility is ringed by antiaircraft guns and other fortifications. It is about the size of a football field, large enough to house 3,000 centrifuges, but small and hardened enough to lead U.S. officials to suspect it had a military purpose when they exposed the site publicly in 2009.

Amid the tensions, Israel is suspected of carrying out a series of attacks targeting Iran in and outside of the country, including the killing of the architect of its onetime military nuclear program with a remote-controlled machine gun.

On Tuesday, the state-run IRNA news agency quoted the prosecutor of Iran’s southeastern Sistan and Baluchistan province as alleging three people arrested in April there on suspicion of working with Israel’s Mossad intelligence agency wanted to kill Iranian nuclear scientists.

It’s unclear why the three would have been in Sistan and Baluchistan, which has no known nuclear sites. The restive province that borders Afghanistan and Pakistan faces sporadic attacks from insurgent groups.

Meanwhile, a Revolutionary Guard brigadier general acknowledged that a fatal May explosion at a weapons development facility in Parchin, east of Tehran, came from “industrial sabotage.” Mohammadreza Hassani Ahangar, the head of the Revolutionary Guard’s Imam Hossein University, said in comments quoted Monday night by a state TV affiliate that an unnamed enemy launched the sabotage that killed an engineer and wounded another worker amid the suspected Israeli assaults.

Gambrell writes for the Associated Press. AP writer Amir Vahdat in Tehran contributed to this report.