South Africa in command chasing 240 to level series against India