They will simply assign one, two, perhaps three of their number to take the first rounds as they break their way into the cockpit, and the terrorist pilot will use their bodies as shields.
I think we're back to Die Hard with Bruce Willis territory now aren't we? If it's a B737 then the main terrorist ain't gonna be able to get past the bodies to enter the cockpit!
Think about it.
VFE.