The fighting has been disrupting oil shipping through the Strait of Hormuz and pushing global energy prices higher.