How to throw enemies into a pit in Dwarf Fortress
You have to designate the top of the pit (hole + standing room around it) as a pit zone, not the floor at the bottom.
You can tell if your designation is a legal pit because the zone screen will show a count of how many squares are legal pit locations within your zone. If it doesn't show 1 or more, your pit will not work and will be ignored.