Blow up of solutions of a generalized Boussinesq equation