It always amazes me when I see some of the things that animals can get into. A lot of it is man made of course. Jars are the worst. But I don't recall ever seeing a deer sticking its head in the tree like that.
I would guess it reared up on its hind legs trying to reach an apple, and when it came down, it managed to get stuck in the fork of that tree. It probably thrashed about trying to get loose and that is why the apples fell down on the ground. Then it probably broke its neck or suffocated. That sure is a shame to see something like that.