PORTLAND, Maine — A 54-year-old Portland man was killed Thursday night when he was struck by an outbound freight train off Forest Avenue near Woodfords Street and Walton Street.

The victim, Richard Cobb, was seen by the engineer walking down the tracks toward the train “in a head-on like manner,” Portland Police Lt. James Sweatt said Thursday of the incident, which occurred at approximately 7:15 p.m.

The engineer sounded the horn and activated the emergency braking system, Sweatt said. Cobb apparently attempted to step away from the train to avoid being hit, but was struck and killed. He died at the scene.

Sweatt said people in the area heard the horn and “screeching brakes” and ran to the scene, where they attempted to resuscitate Cobb, as did emergency personnel when they arrived.

Railroad police continue to investigate the cause of the fatality, Sweatt said. They do not believe it was a suicide. Investigators are attempting to determine whether Cobb had an “altered mental status” or was under the influence of alcohol — although there is no evidence of that at this point, he said.

“It’s not unreasonable to say we had had contact with Mr. Cobb as a transient,” Sweatt said.

Portland police and Pan Am Railways, which owns the tracks, continue to investigate the incident and ask witnesses to leave an anonymous tip at 874-8584 or online at www.portland-police.com; or text the keyword GOTCHA plus their message to 274637 (CRIMES).

On Thursday, Federal Railway Administration spokesman Robert Kulaf said the FRA would not investigate the incident because it did not meet criteria for such an investigation.

Patricia Quinn, executive director of the Northern New England Passenger Rail Authority, said Wednesday night that Amtrak’s Downeaster also uses the track but was not involved in the accident.

Downeaster passengers who were scheduled to leave Portland at 8:10 p.m. were put on a bus and in taxis because the tracks were blocked, she said.

In May 2013, a Portland man suffered a severed leg when he was run over by a freight train in the Riverton neighborhood. The man and a friend had attempted to jump aboard one of the railroad cars and the man fell from the train, city spokeswoman Nicole Clegg said at the time.

Prior to that, in April 2012, an Amtrak Downeaster train hit and killed a person near Main Street in Biddeford, Pan Am Railways Executive Vice President Cynthia Scarano said at the time.