Saudi Arabia has been battling al-Qaida militants in the kingdom , and the terrorist group has targeted Westerners in the past .