Laser weapons are the answer to this, and they’ve been around for a long time. The first drone shot down by a laser weapon happened in 1973! We have the technology. There just hasn’t really been a need to scale them until now, but they are being deployed to many ships in recent years.