South Korea’s Foreign Ministry said Iran released the tanker and its captain after seizing the vessel in January.