The strike appears to have come without warning, and shows that Iran and its proxies can target ships even without mining the Strait of Hormuz.