KINGSTON, N.Y. (CBSNewYork/AP) — A fire was extinguished after burning for some time Friday on a CSX locomotive in the Ulster County.

A railroad spokesman said an environmental contractor will clean up diesel fuel spilled from the engine.

READ MORE: New Jersey Officials Monitoring Omicron Variant, But Say Delta Is Still A Concern As Travel Picks Up

CSX spokesman Rob Doolittle said the engine started smoking as it traveled through Kingston around 11 a.m. Friday and the crew stopped the train to investigate.

READ MORE: NYC 'Strongly Recommends' Masks In Public Indoor Spaces, As Omicron Variant Reaches North America

Port Ewen firefighters put out a fire in the engine compartment of the second of three locomotives on the train. Doolittle said the diesel fuel leak was discovered after the fire was out.

Doolittle said no hazardous materials were on the train and no freight was damaged. The train was carrying 97 automobiles from Louisville, Kentucky, to Oak Island, New Jersey.

MORE NEWS: Harlem's Josephine Baker About To Be Given France's Highest Honor, A Resting Place In The Pantheon

(TM and © Copyright 2015 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2015 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)