The poison was in the ice. When the girl drank the iced tea, the ice was still fully frozen. Gradually, as the ice cubes melted the poison was released into the drink.
Hence, the girl who died, drunk the tea after the ice melted. So, she was died.