UN chief Antonio Guterres has said that attacks by Hamas "did not happen in a vacuum"