A top-ranking Iranian military official has dismissed recent rhetorical threats from US President Donald Trump.