The TENs machine I have had used on me contracts the muscles more than zaps...
I suspect the first device you are referring to is what you say it looks like - a spark generator for lighting gas. A fairly safeish method of getting a sudden, sharp zap when used near flesh but unlikely to cause harm.