Suspect detained in Japan factory attack identified as former employee