At the least, pull the spark plugs and crank the engine over a bunch, in an attempt to get some water out.
I'm not at all surprised your air cleaner caught on fire - I had one of those triangular pieces on an early bronco years ago, I thought iit looked cool, until the truck backfired and the foam caught on fire, as yours did.
I pulled the carb and sprayed it down w/ solvent and let it dry, and vacuumed thru the intake entrance.
Put mine out with a shirt - [smother] so i didn't have the water issue.
Needless to say, no matter how cool it looked I never used that style of filter again.
Sorry to hear your bad news.