Electoral Competition under the Threat of Political Unrest