India spinner Varun Chakravarthy took five wickets against South Africa in the second T20 international, with four batters bowled.