South Africa beat the All Blacks 33-26 in Cape Town to level the series.