Purchase diatomaceous earth from a reputable dealer who sells food-grade diatomaceous earth. Do not use the type made for swimming pools, as it is ineffective as an insecticide due to the large size of the crystalline particles.
Purchase and set out hive beetle traps. These can be found online. You may have to experiment with different types in order to find the one that works best for the beetles in your area.
Bait the traps using pear extract, slow-release ethanol or a brood pheromone. Again, some experimentation is required to find what works on your hive beetles. Any of the baits can be found online. Bait traps according to trap instructions.
Mix diatomaceous earth and hydrated lime generously into the soil around the base of the hive, and then sprinkle additional diatomaceous earth and lime on top of the soil.
Set the traps out in the treated soil. The diatomaceous earth and lime has shown some success in killing the trapped hive beetle larvae.