The suspect, who was killed following the shooting, had previously been imprisoned for several years for trying to support ISIS, the FBI said.