Flynn says smart profiling could prevent more homegrown attacks