South Africa triumph despite Afridi fireworks