Surrounded is semi-adjectival in your sentence and thus both prepositions are correct. When surrounded is not adjectival, only by is possible: The house was surrounded by the police. CB
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.