Oil extended gains after an Iranian news agency reported that the Islamic Republic struck “hostile targets” in the Strait of Hormuz.