Armed groups linked to al-Qaeda began attacks in the mid-2000s, but several security measures have halted them.