Calculation of the knight shift in beryllium