Team South Africa won bronze at the first Kho-Kho World Cup in India, overcoming setbacks to beat Uganda and Iran.