Violence mars Pakistan election