The suspect had uploaded an oath of allegiance to the current leader of the Islamic State group militia to an internet account a few weeks ago, investigators said Wednesday.