The military is (theoretically) a nonpolitical institution, but as soon as the operation went south, the military abandoned its nonpolitical faaade to protect itself.
The military became partisan because it hoped to receive additional funding.