Police on Wednesday arrested two persons and detained four others for their alleged involvement in operating an illegal firecracker factory in Egra area of West Bengal's Purba Medinipur district, where nine people were killed in a blast, a senior officer said.