Attacks on two tankers in the Gulf of Oman threaten global energy security, Fatih Birol, the executive director of the International Energy Agency (IEA), said on Friday.