South Africa has closed a busy border crossing with Mozambique on Tuesday following post-electoral violence in the country.