The move comes after Iran is accused of attacking ships in the Strait of Hormuz.