Thank you, everyone, for the comments. it seems the consensus is that it has to do with light/shutter relationships, but I confess I am still unclear as to the actual physics.
Why a visible "beam" of light is seen in front of the locomotive, moving in that direction, remains a mystery to me.
In response to questions like this: "what exactly are you trying to achieve shooting a moving target with a flash?"
I really wasn't specifically trying to achieve anything. I was just playing around taking photos of the trains while operating them. With the limitations of the relative darkness of the museum at that time of morning, and the limitations of the camera, I was just trying to get a photo without a blur. Seems to work on the locomotive, the light observation was a surprise.