As long as both the nouns "deer" and "fire" can be followed by the pronoun IT since both make grammatical sense with it, how about simply repeating the noun "deer" a second time to clear any ambiguity?
After roasting the deer, the hunter extinguished the fire and then searched for a tree to hang the deer from.