The incident occurred amid heightened tensions between the U.S. and Iran, just a few days before the expected talks between Washington and Tehran.