I think pruning would be too difficult/impossible, even if you found plants that would tolerate the indoor light, high humidity, and lack of drainage. Better to enjoy your bonsai in the open air (outdoors, for most), and your terrarium inside.
I know of one setup, in Japan, costing around 10K dollars that can house one single pine.
Ficus might last a long time in a terrarium, anything else will perish over time.
The only type of tree that would even have the slightest chance of surviving that would be some tropical species - but even then, that doesn't sound like a good environment at all. As said already, pruning would be difficult and if it's completely sealed, the tree will likely run out of usable air