A boundary value problem for fourth-order elastic beam equations