On Terrorism and Electoral Outcomes: Theory and Evidence from the Israeli-Palestinian Conflict