Nonlinear dynamics and stability of a homogeneous model of tall buildings under resonant action