A submarine maintenance company has been fined £50,000 after an HSE investigation into a worker's hand injury.