A firefighter died from an extremely rare form of cancer, an inquest was told.