The Department of Homeland Security assessment, first reported by The Associated Press, found that only a small number of people from the seven countries had been involved in terrorism-related activities in the United States since the Syrian civil war began in 2011.