India bowl out S. Africa for 258; need 287 to clinch second test