Thai militants learn from Iraq insurgency