Chaotic dynamics of an unbalanced gyrostat