Definitely a bit confusing.
Basic genre assumption would be that she died, but seems more like senpai never reciprocated her feelings.
The way I read it, the girl did confessed to the senpai who cares for her, but senpai rejected, probably didn't want to change the then current friendship, and then suddenly died before any other progress were made. Really an emotion equivalent of stubbing toes to read this one.