South Africa’s president vows to restore calm