Mass. man allegedly torches apartment