There are several dieseases that could be the cause. I doubt it would be the filter, unless the filter was not cleaned, or was contaminated somehow.
It could very well have been a bacterial infection, which can become advanced very quickly. Sorry to hear of the loss of your pet.
I'd reccomend full sanitizing of the tank and all equipment if you plan on getting another fish for that tank.