Will a stun gun hurt my ICD?

It won't damage your ICD, though it could possibly lead to a shock. (As if the stun gun wasn't shocking enough.) The incident may also reset the parameters on the device to incorrect values, meaning the ICD would need to be reprogrammed at your doctor's office.