The guy fell from the rafters unto another guy holding the nail gun. The nailed guy was trying to grab the nailee to keep from falling, and as they did the balance dance, the gun made repeated contact with the nailed guys head. Or, the nailed guy tried to nail the nailee's wife, who knows?