Hundreds of Afghans have marched through the northern city of Mazar-e-Sharif to protest the killing of a candidate in the country 's recent legislative elections .