Here's my attempt, I'm almost there but I'm stuck:
Using a hint, I wrote the modular reduction:
Reducing the coefficients modulo $2$ gives: $\left [ f \right ]_2=x^4+x^2+x=x(x^3+x+1)$.
Reducing the coefficients modulo $3$ gives: $\left [ f \right ]_3=x^4+x^3+x-1$
If $f$ were reducible then either it decomposes as $(x-x_0)g(x)$ (in which case $x_0$ is a root of $f$, therefore $\left [ x_0 \right ]_3$ is a root of $\left [ f \right ]_3$ but it is easy to verify $\left [ f \right ]_3$ has not roots so this is impossible) or it decomposes as $p(x)q(x)$, in which case $\left [ f \right ]_2=\left [ p \right ]_2\left [ q \right ]_2$. But I don't know how to find a contradiction here.
Thanks in advance.