Complex sentence: Luff attempted to render Avery unconscious with a stun gun, but due to a malfunction a stun bullet struck Avery but did not knock him out.
Split into simpler sentences: Luff attempted to render Avery unconscious with a stun gun; the stun gun had a mechanical failure. A stun bullet struck Avery but did not knock him out.