The police detained more than 40 people who were accused of taking part in the attack, it added.