Employee was removing an elevator chain pin that was wedged between the idler and elevator casing. While pulling the pin, the employee placed right hand over the end of the pin. Another mechanic who was assisting in this job was jogging the elevator. The elevator rolled back wedging the pin against the floor and the employee's right hand.