Maybe he wasn't, but Trump doesn't appear to worry about people disagreeing with him. When he makes his decision, though, he obviously expects his subordinates to abide by that decision. SECNAV must not have received that memo.
It appears that PDJT had nothing to do with the firing.