A Pakistani man was arrested in Canada this week and accused of plotting a mass shooting at a Jewish center in Brooklyn on the one-year anniversary of the Oct. 7 attack by Hamas that sparked the latest conflict in the Middle East, federal authorities announced Friday.

U.S. Attorney General Merrick Garland said Muhammad Shahzeb Khan had attempted to travel from Canada, where he lives, to New York City with the “stated goal of slaughtering, in the name of ISIS, as many Jewish people as possible.”

The 20 year-old, who is also known as Shahzeb Jadoon, was apprehended Sept. 4 and charged with attempting to provide material support and resources to the terror group, which stands for the Islamic State of Iraq and al-Sham.