An octocopter/ordinary drone can't do this - their electric goes out and they fall from the sky.
For a glider you'd need an actual flyable airplane model (something like this: https://laughingsquid.com/a-15-foot-long-radio-controlled-ai...), and these are expensive as fuck - a single engine alone will run up well into four digit range, if not five digits (something like the JetCat P1000). And at that point, you could also go ahead and buy an outright RPG, should be far cheaper to acquire depending where you are, or buy a couple junker cars, load them up with fertilizer bombs, and distribute them where one expects the target.
ISIS used[1] the X-UAV Talon. This is a off-the-shelf 1.7M wingspan drone plane available for about $150 without electronics (which are around $50-$200 depending on how elaborate you want to get).
It's capable of 100km+ flights[3].
Here's a pic of one after being shot down in Iraq[4]
[1] https://www.lowyinstitute.org/the-interpreter/commercial-dro...
[2] https://au.banggood.com/X-UAV-Talon-EPO-1718mm-Wingspan-V-ta...
[3] https://diydrones.com/profiles/blogs/100km-in-the-x-uav-talo...
[4] https://armamentresearch.com/islamic-state-unmanned-aerial-v...
https://dronecenter.bard.edu/files/2016/12/Drones-in-Iraq-an...
Since you lack all imagination, the drone could position itself directly above the target before cutting off the engines and fall silently.
A small-ish plane frame could easily deliver a grenade from sleepy suburbs 10km straight to the Oval Office with only few minutes of warning (assuming somebody could actually detect it in time at all). We're just lucky nobody seems to be bothered to do that.
there was a hunter drone product doing exactly that from above. can't google it now, maybe there was no business.