Fourteen people were injured in a stabbing attack in a factory in central Japan in which an unspecified liquid was also sprayed, authorities said.