Dozens of people have been injured after a warehouse containing pyrotechnics exploded at a factory north of Moscow.