I feel for you. Hopefully it was mostly flushed.
After Roman dropped his ball in the toilet and then picked it out, sploshing TONS of toilet water all over the place, I came up with the rule that if I'm not sitting on it, the lid's down.
Dogs and toilets do not jive well together, not at all.