Over 800 people detained by army in offensive against al-Qaeda