You cannot kill the Hive Queen. In the Earth Kingdom level "The Day of Black Sun," the objective is to push her into a lava pit to defeat her as a threat. She survives the fall and returns later, consistent with the series' themes of balance and avoiding unnecessary killing.