Gunmen took control Tuesday of Al-Qaim, the Iraqi side of a border crossing with Syria, after security forces withdrew, police and army officers said.