Turn off the heat and gradually sprinkle in the flour—preferably through a sieve—while whisking vigorously to prevent lumps.
Well, to be honest, I ended up using a hand mixer to get rid of them, but I hope things go better for you with all these tips!