Dynamic Response of a Beam Excited by a Moving Mass