Thai intelligence warns of foreign terror attacks