ray waited a second , offering bill the opportunity to fire , and then he reacted in a jerk and ripped the gun away from bill 's hands and proceeded to beat the weapon against a tree until lock , stock , and barrel separated and fell to the ground .