The warning came as the Strait of Hormuz remained closed by Iran, stifling oil shipments, after Israeli strikes in Lebanon.