Hamas , which controls Gaza , temporarily shut the tunnels at Egypt 's urging , after Israel warned tourists in the Sinai peninsula to immediately leave because of a terrorist plot to kidnap Israelis .