Train carrying hazardous material derails and catches fire in North Dakota