The Catastrophe of a Buckling Beam