Maintenance was working on the bypass fan to remove the cap on the bearing. A maintenance technician began to hit the top of the cap with a hammer to loosen it up. The cap popped off the bearing and flew up hitting another maintenance technician in the left wrist as EE used EE's left arm to block EE's face.