The " lone wolf " jihadis are very difficult to detect and stop. So sting groups may not attract them much. So that leaves collective responsibility. Their family, friends if any and associates know who they are. They must turn them in to the authorities before it happens.
No need for brutality...