The servicemen were detained after inspecting a vessel in the Gulf's Shatt al-Arab.