A man was arrested after stabbing eight people and injuring seven others with what was believed to be bleach at a tyre factory in central Japan.