Top UN official warns of risk of widening war in the Middle East