A large explosion at a fireworks factory in northern Malta has damaged buildings several kilometres away.