4 killed in firecracker factory blast