Over 5,000 held in crackdown on extremists