An Israeli army spokesman said soldiers opened fire on two gunmen , killing one and wounding the other .