For every vector $v \in V$ there exists a unique monic polynomial $p$ of minimal degree such that $p(A)v = 0$.
If $f(A)v= 0$ then $p \mid f$. There exist unique $g, h$ such that $f = gp + h$ with $\deg h < \deg p$. In particular
$$0 = f(A)v = g(A)p(A)v + h(A)v = h(A)v \implies h = 0 \implies p \mid f$$
by minimality of $p$.
We can assume that $q$ is monic.
Assume $V_q \ne \{0\}$ and let $v \in V_q, v \ne 0$.
Let $p$ be the unique monic polynomial of minimal degree such that $p(A)v = 0$. Hence $p \mid q$ and since $q$ is irreducible, we conclude $p = q$.
Since $\chi(A) = 0$ by Hamilton-Cayley, we have $q \mid \chi$.
Conversely, assume that $V_q = \{0\}$. Let $\overline{F}$ be an algebraic closure of $F$. Then $q(A)$ is invertible so $0 \notin \sigma_{\overline{F}}(q(A)) = q(\sigma_{\overline{F}}(A))$ where $\sigma_{\overline{F}}$ is the spectrum of these maps in $\overline{F}$.
Let $\lambda \in \overline{F}$ be a zero of $q$. Then $\lambda \notin \sigma_{\overline{F}}(A)$ so $\chi(\lambda) \ne 0$. Hence $q \not\mid \chi$.