An employee was operating a debarker at a lumber yard. A limb got stuck and the employee attempted to remove it by wrapping the chain around the limb and using the hoist. The limb came free and hit the deck where the employee was standing and then hit the employee in the foot.