Former Boulder County used stun gun on restrained man