Fourteen people were injured in a stabbing attack in a factory, during which an unspecified liquid was also sprayed, an emergency services official said.