Israel’s military has begun moving civilians out of Rafah, a possible prelude to a long-expected attack on the Gazan city.