Linear and nonlinear dynamics of a beam-cable-beam model