Public fury has erupted in Iran after the military admitted mistakenly shooting down a Ukrainian airliner amid heightened tensions with the United States.