Dynamic structure factor in warm dense beryllium