Alan Hatherly secured South Africa's second medal at the Olympic Games in Paris after coming third in the men's cross country mountain bike race.