Yes, it was most likely the heat that killed them. As the temperature rises, the amount of oxygen in the water will decline and the metabolism of the fish will rise requiring more oxygen. Make sure to get a reliable thermometer as well. Don't assume that the markings on your heater are correct. Sorry about your fish.