The mechanical behavior of beryllium at high pressure