There are no direct flights from South America to Tanzania. The most feasible route would be a flight from Sao Paulo, Brazil to Johannesburg, South Africa with South African Airways and getting connected onwards to Dar es Salaam. Other options are rather less convenient and also would take longer time for the entire journey. These options are connecting flights of Emirates, Turkish Airlines, KLM and Ethiopian Airlines from European or Middle East hubs
