It looks like a toy attachment for a gun, but the new device is intended to give suspects a chance to live if shot.