There can be no such polynomial. In general, if $R$ is a commutative ring, and $p(x)\in R[x]$, then for any $a,b,c\in R$, such that $ac=bc$, we can show $p(a)c=p(b)c$.
Now, take $a=0,b=3,c=3$ in $R=\mathbb Z_9$.
You can solve the general problem in $\mathbb Z_m$ if $m=p$ is prime. In that case, you can think of the solution as a case of Chinese Remainder Theorem in $\mathbb Z_p[x]$, since we want a polynomial, $q(x)$ such that $q(x)\equiv f(a) \pmod{x-a}$.
If $m$ is square-free or twice a square-free number, my condition above is sufficient. (Essentially, the case $m=4$ is a special case.)
Unfortunately, the above condition is not sufficient otherwise.
Write $q(x)=\sum_{i=0}^n a_i(x)_i$ where $$(x)_i=x(x-1)\dots(x-(i-1))$$ is the $i$th falling factorial polynomial.
Then if $m=8$, then $(b)_i=0$ for $b\in\mathbb Z_8$ and $i\geq 4$. So we can restrict ourselves to cubic polynomials $q$.
Now try to find a cubic polynomial $q$ such that $q(0)=4$ and $q(a)=0$ for $a\neq 0$. I don't think it can be done.
If $p>2$ then consider the polynomial $q(x)=\frac{(x)_{2p}}{p}$. This polynomial (with rational coefficients) maps $\mathbb Z\to \mathbb Z$, and it has the property that for all $a,b\in\mathbb Z$, $a-b|q(a)-q(b)$. This means, in particular, that we can view this as defining a function which maps $\hat q:\mathbb Z_{p^2}\to\mathbb Z_{p^2}$ and we can show $\hat q$ matches my necessary condition.
However, it is impossible to find a polynomial in $\mathbb Z_{p^2}[x]$ which evaluates as $\hat q$. This is because if $h$ is such a polynomial, we have that $h(p+a)=h(a)=0$ for $a=0,1,2,\dots,p-1$. But $h(a+p)\equiv h(a)+ph'(a)\pmod{p^2}$. This means that $h'(a)\equiv 0\pmod p$ for $a=0,\dots,p-1$, and hence for all $a$. But that in turn means that $h(a+p)\equiv h(a)\pmod {p^2}$ for all $a$, which would mean that $\hat q$ is the zero function. Since we know it is not (that is where $p>2$ is needed) we are done.