The Logic of Insurgent Electoral Violence