The US is "looking for a face-saving way to escape the war quagmire it has become trapped in", says Iran's defence ministry.