The renewed hostilities posed fresh risks to ships seeking to navigate the Strait of Hormuz.