Thai militants ‘trained in Libya’