Are you talking about Die Hard 3? It looked like a .38, just an old one.
And he didn't hit the chopper. He realized that after three shots, he wasn't affecting the choppah, so he shot the transformer the pilot was flying near, and the sparks from that thing knocked out the aircraft.