Ten American sailors are safely out of custody Wednesday after being captured in Iranian waters.

Pentagon officials say they lost contact of the sailors after their two small boats drifted into Iranian waters while traveling between Kuwait and Bahrain.

The Iranian General said the sailors showed "unprofessional behavior" and accused the U.S. of spying.

The incident comes during heightened tensions with Iran over sanctions, the nuclear deal and support of Sunni leaders in Saudi Arabia.