Earlier this month , the United States , Britain , and Japan warned their citizens of possible terrorist attacks in Europe after Western intelligence officials uncovered a plot by al-Qaida-linked militants based in Pakistan for terror attacks in major British , French and German cities .