A man who was trying to cross the tracks in Hyattsville on Monday evening was struck by a commuter train and killed, Hyattsville police said.

They said the man was trying to cross the tracks near the 4500 block of Kennedy Street when the train hit him about 6:30 p.m.

The man was not identified immediately.

The man was walking east and was struck by a train headed south on the MARC commuter rail system’s Camden Line, authorities said.

According to police, Kennedy Street dead-ends at the tracks.

The operator of the train spotted the man approaching the tracks and tried to warn him by sounding the horn, said Lt. Chris Purvis, a Hyattsville police spokesman. He said the man was not directly in front of the train, and had apparently not stepped onto the tracks when he was struck. Instead, Purvis said, he was grazed by the train, which had just left the Riverdale station.

The train came to a stop at Decatur Street, some distance south of the site of the collision.

Service was suspended for a time on the Camden Line. Passengers headed north from Washington were advised to take Metro to Greenbelt, where a northbound MARC train was to be available.

Passengers were also advised that Penn Line service was not affected.