The attack seemed similar to attacks staged near foreign compounds in Riyadh on May 12 , for which officials have also blamed al-Qaida .