On the chaotic behavior of a compressed beam