Insurgents said they released the men after Beijing promised to discourage its citizens from traveling to Iraq .