Defense Secretary Pete Hegseth said Friday that he was firing Adm. Lisa Franchetti, the first female officer to rise to the Navy’s top job of chief of naval operations.