UN agency official apologizes over comments on Gaza attacks