The US said Iranian-backed militants attacked troops stationed in northeastern Jordan near the Syrian border, killing three and wounding 25 others.