Iv never heard of this - I have taken shots of the MI6 building, in sight of security and it was not a problem.
Might be one of those things that's technically against the law but not often enforced. Try it again in a burqua and let us know how you get on.