Electoral Competition Under the Threat of Political Unrest