UN chief warns of global security threat from Gaza war