7 killed in factory blaze