Middle East 'on the brink' after Iran's attack on Israel, says UN security general