I believe he just happened to be passing the house. It's all just a stack of unfortunate coincidences (e.g. I'm sure he didn't consider that wearing a big coat would make him a suspected suicide bomber).
He came out of the house, which was under surveillance, and was followed from it by the police.