Five people were pulled to safety after spending nearly two days on top of a plane after it made an emergency landing in a swamp in Bolivia.