Odd problem.

You said the air filter was very dirty... was it so dirty that it was acting like a choke, and now with the restriction removed it's too lean to idle?