As US tightened security, terror groups sought easier targets and found willing recruits among Muslim communities who had failed to integrate into mainstream society