Militants in Syria have opened fire on two Iraqi border posts along the southern edge of the two countries' frontier, killing one guard and wounding two others.