BAGHDAD — In the first Iraqi elections since the American troop withdrawal, Sunni candidates are being attacked and killed in greater numbers than in recent campaigns, raising concerns in Washington over Iraq’s political stability and the viability of a democratic system the United States has heavily invested in over years of war and diplomacy.