UN chief 'shocked' to be accused of 'justifying' Hamas attacks