Columbo hearing the buzzing was probably just a coincidence. I think that had Columbo not discovered the bugs himself, Hanlon knew that Walter would have eventually released the tapes to Eric's wife hoping that there would be something there that would diminish Hanlon. At that point, if necessary, Hanlon could have used the tapes as his alibi.