A pilot was killed and a passenger injured when a small plane crashed onto Long Island Rail Road tracks on Long Island this morning.

The plane had taken off from an airport in Westhampton Beach and was headed to Morristown, New Jersey when it crashed at about 7:45 a.m. at a railroad crossing on the border of Hicksville and Bethpage. Shortly beforehand, the pilot had reported to air traffic controllers at Republic Airport in Farmingdale that the plane was having trouble remaining aloft.

The pilot died at the scene, and the passenger, Carl Giordano, 55, of New Vernon, New Jersey, was taken to a nearby hospital with a broken jaw.

Hope everyone is ok #planecrash #hicksville #news12longisland #channel1 #traintracks

A video posted by Henry Zelaya (@xzelaya) on

"It sounded like a heavy piece of machinery, a lot of noise," Oyster Bay Councilwoman Rose Walker told NBC4. "And then I realized it was a plane, and I thought 'I hope it's not in trouble,' only to find out a short time later that the plane went down."

The MTA has suspended LIRR service between Hicksville and Farmingdale while police investigate. The agency is advising riders to use the Port Jefferson and Montauk branches for alternate service.

The crash comes one day after a crash on takeoff that killed a pilot in Fairfield, New Jersey.