The italicized word "bashfully" in the sentence suggests that the new student was feeling shy or timid while telling the joke. The context clue of being relieved when her peers laughed indicates that she may have felt nervous about how they would react. Therefore, the most fitting meaning of "bashfully" is:
nervously