It wasn’t clear whether Hamas, which controls Gaza, would allow foreigners to move to the border crossing.