Dozens of people attended a poignant service in honour of a Polish sea captain who lost his life after his ship was torpedoed.