Iran released ten U.S. sailors on Wednesday after holding them overnight, bringing a swift end to an incident that had rattled nerves days ahead of the expected implementation of a landmark nuclear accord between Tehran and world powers.
Iran's Islamic Revolutionary Guard Corps (IRGC) said it had freed the sailors after determining they had entered Iranian territorial waters by mistake. The sailors had been detained aboard two U.S. Navy patrol boats in the Gulf on Tuesday.
"Our technical investigations showed the two U.S. Navy boats entered Iranian territorial waters inadvertently," the IRGC said in a statement carried by state television. "They were released in international waters after they apologised," it added.
Confirming the sailors' safe release, the Pentagon said there were no indications they were harmed while in Iranian custody.
A carefully worded statement did not explain how the sailors and their two riverine command boats ended up being detained by Iran, saying only that "the Navy will investigate the circumstances that led to the sailors' presence in Iran".
The sailors were later taken ashore by U.S. Navy aircraft, while other sailors took charge of the boats and headed towards Bahrain, their original destination.
U.S. Defense Secretary Ash Carter said he was pleased the sailors had been freed and appreciated "the timely way in which this situation was resolved".
He added: "I want to personally thank Secretary of State John Kerry for his diplomatic engagement with Iran to secure our sailors' swift return."
IRGC Rear Admiral Ali Fadavi had earlier said that the two U.S. Navy boats entered Iranian territorial waters due to a broken navigation system.
The incident raised tensions between Iran and the United States, which, along with other world powers, reached a deal last year under which Iran will curb its nuclear activities in exchange for the lifting of economic sanctions.
Some conservatives in both countries, enemies since Iran's 1979 Islamic revolution, have criticised the deal that is due to be implemented in the coming days.