The worst of the violence was concentrated here in Iraq’s capital, where more than two dozen people were killed in explosions and fusillades of gunfire that transformed the morning commute into a landscape of carnage.