In January , Hamas militants blew open the border wall , allowing thousands of Palestinians to stream into Egypt to buy goods that are scarce in Gaza , which is subject to an Israeli blockade .