Shocking video captures dramatic rescue of man nailed to a tree