The museum in central London, which attracts almost 6 million visitors a year, closed its temporary exhibitions and part of its permanent collection after the alleged attack.