The correct answer is B. took to flight.
To take to flight means to run away quickly, especially in fear or panic. In this case, the thieves took to their heels when the police came, which means they ran away quickly in fear.
The other options are incorrect because they do not accurately describe what happened in the story. Option A, were taken by surprise, is incorrect because the thieves were not surprised when the police came. They knew the police were coming and they were prepared to run away. Option C, took shelter in a tall building, is incorrect because the thieves did not take shelter in a tall building. They ran away from the police. Option D, unconditionally surrendered, is incorrect because the thieves did not surrender to the police. They ran away from the police. Option E, opened indiscriminate fire, is incorrect because the thieves did not open fire on the police. They ran away from the police.