Several ballistic missiles and rockets were fired by Iranian-backed militants from western Iraq, the Pentagon said.