Sure thing. The basic idea would be:
1) Have a camera on your drone
2) Run some frames through a locally running version of something like AWS Rekognition's celebrity identification service but for relevant military targets.
3) Navigate towards coordinates of target individuals
It isn't exactly magic, here's a video of a guy doing navigation with openCV on images: https://www.youtube.com/watch?v=Nrzs3dQ9exw