The correct option is B The fire caused the residents of the building to leave.
Here, the sentence uses the phrasal verb 'drive off' which means 'cause or force someone to leave'. Therefore, 'The fire caused the residents of the building to leave' is correct.