Firefighters bring nearly dead dog back to life