A restricted sum formula for a q-analogue of multiple zeta values