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: 15-Year-Old Fatally Stabbed In Brooklyn, Police Questioning Person Of Interest

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: Ahead Of Father's Day, Mets Host Families Who Lost Loved Ones On 9/11: 'It Opens Up The Wounds'

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: Claremont Residents Say Overflowing Garbage Is Leading To Major Rat Problem In Community

(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.)