When we shoot, the bullet has a very high velocity. Its shape is aerodynamic. So, when the bullet collides with the glass at a very high speed, it passes through the glass without releasing much energy and the glass does not vibrate very much. Therefore, makes a hole in the glass.
Whereas the speed of stone is comparatively very low and releases very much energy when strikes on glass. It causes the glass to vibrate enough to break into pieces.