Employee was using an impact pun to remove nuts from studs on vessel piping. Stud spun & gun backed up pinning Rt thumb between gun & bolt on flange. Resulting in small cuts to thumb & some swelling. EE iced & returned to work. EE sought medical treatment on 7/15/13. Xray showed non displaced fracture. Restricted duty 7/15/13