Hard to say what it "could be" without any details or pictures.
But diatomaceous earth on top of soil, will take care of most larvae and non flying bugs.. Even flying ones, as they land to lay eggs in the soil.
- If you figure out what type of bug it is, you can order predator mites online,, and have them take care of anything crawling on the plants.. You'll have to know what type of insect it is tho, as there's a wide variety of predators, where most specialize in a few types of insect and might not eat other types at all.
Imagine yourself as a general giving orders to your own little army of bugs. Like a real army, you'll want something effective against the opposition, a tiny machinegun won't destroy a tank, and a tank is pretty useless against people running around in tunnels under it.
- Also, you'll love the Diatomaceous earth.. Imagine getting a million tiny cuts on your body, draining you of any fluid. It's a painful death. That's what DE does to insects, and 100% worth the money.