The British-flagged Stena Impero tanker left Iran’s Bandar Abbas port on Friday after being detained since July by Iranian forces and was heading toward international waters.