I consulted my dentist over the phone. She said it's okay, it would get absorbed but to be careful next time. However, this article of New York Times Health Guide says:
Beeswax poisoning occurs when someone swallows beeswax.Hoping for the best inshAllah.
Beeswax is considered nonpoisonous, but it may cause a blockage in the intestines if a large amount is swallowed.