A mechanic was working on a mast raise cylinder. Attempting to loosen a flange bolt with a wrench and it would not loosen. The mechanic then grabbed a 2lb hammer and struck the wrench several times. On the last strike they missed the wrench and struck their left hand in between the finger and the thumb