枪 (gun) +
眼 (eye/hole) — either the "eye" through which a gun fires from inside a fortress (loophole), or the "eye" a bullet leaves behind (bullet hole). Same logic appears in
针眼 (needle eye),
钥匙眼 (keyhole),
烟囱眼 (chimney opening) —
眼 = small round opening.