Prosecutors say the alleged assailants were Islamic extremists who decided to attack foreigners .