The president and diplomats have called for calm amid a rise in violent incidents in the vote’s run-up.