The gunship was still flying, but perhaps the guns have a separate energy source, analogous to a limited supply of ammunition.
The energy required to fire a gun (with enough power to damage a fighter) may be much greater than the energy required to fly.