South Africa had two players sent off in the World Cup opener being reduced to nine men in the second half against Mexico.