A viral photo showing children separated by race at a school in South Africa has sparked anger.