it’s not necessarily with a bullet. Most improvised attack drones drop explosive payloads, since it’s both simpler to set up and simpler to use. Outfitting a drone with a gun takes making a complicated system for aiming it, while a payload drone just needs some 3d-printed parts, some extra wiring, and usually just a single servo.
prior comment edited for ya.