To bury a shovel in Animal Crossing, you actually need two shovels in your inventory.
With both in hand, you can plant one in the ground. Though, honestly, it's a bit pointless, but it can be a fun quirk to try.