Wait, what do you mean?
I don't think kicking spectators is the right way, you should block them from joining this team from the start.
There is a cvar for this such as allow_spectators, or even a plugin like this one:
https://forums.alliedmods.net/showthread.php?p=398087
Admins can of course bypass this with their commands.