Groups that say they are affiliated with al-Qaida have claimed responsibility for the attacks .