They didn't take down the RADAR on the Bismarck. They hit the rudder, under heavy AA coming up from the Bismarck. It wasn't luck at all, it was a very daring and skillful attack.
That's the thing, the Swordfish didn't have to meet any 109s, so it was perfect for the job of taking on the Kriegsmarine. And it did its job very well.