A man set a fire on a train and stabbed Swiss passengers in the country's northeast.