As a matter of principle, the terrorist attacks carried out in the US in recent decades, as well as in other Western countries, have nothing to do with religion or faith. This is not a war between Muslim and other religions that exist in the West, but between countries with a political interest in the Middle East and the North of Africa, and with a different manner to interpret Muslim to believe.
These attacks are mainly the outcome of the role played by the USand other Western countries in the Middle East defending the position of Israel, not only in its role as occupying forces of the Palestinian territories against the position of the immense majority of the international community, but in its role in the destabilization of other countries in the region as well.
Western countries no involved in any of these countries or conflict in the Middle East are not subject to these terrorist attacks. This by no means excludes the fact that you can find people with extreme religious beliefs (fundamentalists) that is convincing by real terrorists in carrying out these attacks in the name of their religion against those that are not Muslim in some Western countries.
I fully agree with Jorge Pedraza. His insightful feedback explains a lot of critical issues related to aggressive politics not religion. I would like to add that race is a major factor in American society as it (race) associates particular physical features such as skin color, facial characteristics with certain cultural/racial identities including Black/White, Muslim, Middle Eastern/Asian and so like, regardless to their actual religion. Political ideology is also a key factor. For example, in the United States of America, Council on American-Muslim Relations (CAIR)'s report (2018) indicates that Trump's Muslim Bans increased anti-Muslim discrimination and violence.
For the second quarter of 2018, CAIR received 1006 reports of potential bias incidents, with 431 of these reports determined to contain an recognizable element of anti-Muslim bias. To be more specific, for the 341 cases in which a victim’s ethnicity or national origin was identified, the most frequent was “Middle Eastern/North African” at 39 percent. The second most common was “Black/African-American” at 17 percent. At 14 percent, “South Asian” was the third most commonly targeted ethnicity.