Acting Navy Secretary Thomas Modly resigned a day after leaked audio revealed he called the ousted commander of the USS Theodore Roosevelt “stupid” in an address to the ship’s crew.