Maintenance was replacing pads on a dozer track. While trying to position the track, one worker struck the track with a hammer. A piece broke off & struck another mechanic in the leg. A metal shard embedded in the leg above the knee. After attempting to remove the shard, MDs left it in place, mechanic was treated w/antibiotics & returned to work on next shift.