UN relief chief says Hamas is not a terrorist group