what does the word distracted mean in the sentence below?

The boy could not study because he was distracted by the noise in the library.

A. had looked for the source
B. had his attention drawn away
C. had pledged an oath
D. had no interest iñ​