The fish almost certianly died of oxygen starvation. Something is fueling a bacterial or algal bloom. Usual suspects are biopellets, vodka, sugar, vinegar or other bottled "miracle cures" from TLF, Seachem, Kent or the like.
I would run granular carbon for the next month or two until you figure it out.