One way to do this is to introduce three auxiliary variables: $x$ and $y$ are non-negative integers and $z$ is binary. The binary variable $z$ should equal 1 if and only if $a_0+a_1+a_2 \mbox{ mod } 2=1 $.
Then you may add the following constraints
\begin{align}
&a_0+a_2+a_2=2x+z\\
&a_3+a_4+a_5=2y+(1-z)\\
&x,y\in\mathbb{N}_0,\ z\in\{0,1\}
\end{align}
The first constraint says that $a_0+a_1+a_2 \mbox{ mod } 2=1 $ if and only if $z=1$ and the other constraint says tha $a_3+a_4+a_5 \mbox{ mod } 2=0 $ if and only if $z=1$.
Edit: Based on the comment by @RobPratt my first answer was a bit too restrictive. In stead of adding one binary variable $z$, introduce two binary variables $z_1$ and $z_2$ and add the following constraints
\begin{align}
&a_0+a_2+a_2=2x+z_1\\
&a_3+a_4+a_5=2y+z_2\\
&z_1+z_2\leq 1\\
&x,y\in\mathbb{N}_0,\ z_i\in\{0,1\}, i=1,2
\end{align}