India collapsed to 93/9 as Simon Harmer’s 4/21 sealed South Africa’s first Test win on Indian soil since 2009.