Brazilian troops have been deployed in the Amazon to fight fires that have swept the region and prompted anti-government protests as well as an international outcry.