Iraq’s upcoming elections have entered a tense and dangerous phase following the assassination of a prominent candidate — the first such killing linked to electoral competition in over a decade.