Dog climbs down mountain after search-and-rescue team fails to rescue it