Cut it with a dremel disc, from near shaft tip towards the motor, parallel to the shaft, but don't hit the shaft. When you are at 3/4-7/8 of the way thru, stop and try to break the slice off using a screwdriver. This break usually shocks the gear, breaks along the thin layer next to the shaft too(if you're lucky), and it often loosens enough to use pliers, otherwise you need a second cut on the other side, and a bit of light grinding to get it thin enough to split it. But don't grind the shaft!
Top cutters hold small gears well and can split some brass gears on their own, or tapping with a hammer.(top cutters are kind of like side cutters, but blades are 90 degrees to the handle)
A chisel would work too.