Acting Navy Secretary Thomas Modly has submitted his resignation a day after a leaked audio showed him calling the ousted commander of the USS Theodore Roosevelt “stupid” in an address to the ship’s crew, according to a US official and a former senior military official.

The Navy and Department of Defense did not respond to a request for comment.

Modly’s Monday morning remarks to the crew prompted sailors to yell back in frustration, President Donald Trump to say he might “get involved” in the matter, and Defense Secretary Mark Esper to order Modly to apologize, two US officials tell CNN.