Light by itself is unlikely to have killed them. Fish can live in tanks without light, and also in brightly lit tanks. One thought though, when you floated the bag, was it near the lamp? I'm wondering if the heat from the lamp raised the temperature of the water in the bag to fatal levels.