Until recently, Rafah, a small city in the southern Gaza Strip on the border with Egypt, was one of the last places of refuge during Israel’s war in the enclave. It quintupled in population as displaced people from the northern parts of the Strip sought safety in the roughly 25-square-mile area.