How does an officer use a gun instead of a stun gun?

How does an officer use a gun instead of a stun gun?