American journalist Shelly Kittleson​ is being released on the condition that she leave Iraq immediately, an Iranian-backed militia in Iraq says.