UN warns of changing nature of global terrorism