Stand near the pyramid: open your inventory - drag and drop pyramid into it. Yes, you need one in your inventory to get out of that area again, otherwise you're stuck in there.
Kiya