Man killed at rail crossing