The FBI and federal prosecutors say he was plotting an attack at a grocery store and fast food restaurant near Charlotte.