On Terrorism and Electoral Outcomes