It sounds like Bridge to Terrabithia to me, but the ending doesn't seem like it.