Two miners working to remove a guard from a apron feeder for repairs/clean up. One miner was attempting pry off the guard, while other miner was using an 8 lbs. sledge to strike on the main frame. The injured miner moved to get a better position. The second miner, using the hammer, the hammer glanced off of the frame and stuck the second miner on the right knee cap.