$Z$-peaked excess from heavy gluon decays to vectorlike quarks