UN chief, at Rafah-Gaza crossing, urges end to ‘nightmare’ of war