Human rights groups have warned that expelling the population from Gaza would violate international law.