UN chief describes terrorism as ‘affront to humanity’