The Proteas could manage to add only a single run to their overnight total before Nadeem secured the last two wickets in successive balls.
South Africa were 132-8 at the close of play with India requiring two wickets to wrap up a series sweep over Faf du Plessis' men.
"Those catches, they stick or they don't. So unfortunately it wasn't our way, it was Rohit's. He played well, so well done to him."
South Africa were in trouble at nine for two, with Indian fast bowlers sending the opposition openers back to the pavilion in Ranchi.
"If he starts coming good top of the order, it changes everything for the Indian team, even when you're touring."
Sharma, on 117, combined with Ajinkya Rahane, on 83, to put on an unbeaten 185-run stand after the hosts were wobbling at 39-3.
South Africa seek to turn the tables on India and get a consolatory win to bag crucial Test championship points after losing the Test series
Aiden Markram will not be available for the third and final Test against India after he sustained a wrist injury during the previous game in Pune.
‘Focusing on taking every opportunity to play for England’ – Malan targets recall in longer formats
Players shuffle among franchises before IPL 2020 auction
Imran Nazir opens up about his life-threatening disease
Nicholas Pooran handed four-match suspension for ball-tampering
'Pat Cummins must get the new ball' - Brett Lee
Yuvraj Singh confirmed as Maratha Arabians’ Indian icon player in Abu Dhabi T10 League
Sami Aslam leading the runs chart in QED Trophy 2019
Salman Butt found Warne easy to face
Kapil Dev gives the ultimate compliment to Kohli
Dale Steyn, Rashid Khan, Hashim Amla and other big names join PSL 2020