Frightened Palestinians packed belongings and left their homes in northern Gaza on Friday after Israel’s military demanded that more than 1 million civilians move to the south of the blockaded coastal strip within 24 hours, a possible precursor to a ground invasion but one that the United Nations warned could be calamitous.