Clashes, then calm, as Afghans vote