Always tough when this happens, when I was a school principal, we always gave support initially and carried it through for about a week, but kept focused on returning students to normal classes as soon as empathically possible.
The trouble was always the same kids who avoided classes were always the ones who seemed to be most distraught about the loss of fellow students.
Often, we had to tell those students, they needed to continue their grieving at home.