Judge rules suspect in voting machine tampering case is incompetent