Learn a Soul Trap spell and cast it on the creature, then kill it before the spell wears off. If you did it right, the soul is captured.
Two conditions matter: you need a soul gem in your inventory with enough capacity for that soul, and for NPCs — Dremora included — you need a Black Soul Gem specifically.