Dwight Antonio Hamilton, 62, of Tampa was walking west on the tracks about 6 p.m. Wednesday near U.S. 301 and Adamo Drive when a freight train approached from the east, sheriff's officials said. A conductor spotted him and blew the horn.

Hamilton turned around, then moved off the tracks, authorities said. But just before the train passed him, he stepped back onto the tracks and was hit.

Hamilton's daughter had reported him missing Monday after he didn't arrive to meet her after church, as they had planned, officials said. Hamilton suffered from dementia.

Deputies said they were unable to determine if his death was an accident or a suicide.

Another train crew told deputies they had seen Hamilton earlier in the day walking and dancing on the tracks, officials said.