US defence secretary Hegseth criticised media coverage of the war on Iran.