Control of Multiagent Networks with Misbehaving Nodes