Did it die completely?
It's probably root rot. Look at that soil mass. It looks like a bog!
That is a lot of foliage for such a small root ball / pot.
That much foliage perspires a lot of water. If you let the roots completely dry out for more than a couple days, some of the branches will die back and possibly the entire tree will die back.
You can scrape the bark with your fingernail to see if it is still green and supple underneath. Those outer branches are definitely dead, but hopefully some of the inner branches and trunk are still alive. The trunk is the last "branch" to die with lack of water.
Keeping the root ball wet for days on end will cause root rot, which is almost as bad as not watering at all, as the roots cannot absorb the water if they are rotted away.
Regardless, you need to trim that back a ton. Get rid of most of that foliage, especially all the dead stuff. You need to replant it into some better soil. Get granular/gravel type soil for bonsai from a nursery. They prefer that type of soil, as it provides more air circulation to the roots. It will require watering more often than potting soil, but the trees will grow much better. Eli's suggestion to put it in a tent is a good method to recover a dying tree. That tree is native to tropical regions with high sunlight and humidity. A tent simulates that environment and slows perspiration.
It is a tropical evergreen, so it will not drop leaves in the winter. Its dormancy will just slow the growth down.
BTW, get that juniper bonsai outside immediately. It will die indoors.