A freight train derailed in Southeastern Kentucky on Wednesday afternoon, causing Governor Andy Beshear to declare a state of emergency.