[guided]The point of writing the convolution as
\begin{align*}
(f*g)(x)=\int_{\mathbb{R}^n} f(y)g(x-y)\,d\mathcal{L}^n(y)
\end{align*}
is that the variable $x$ appears only in the smooth factor $g(x-y)$. We want to justify moving $\partial_{x_i}$ through the integral. Since $f$ is only locally integrable, not necessarily bounded or continuous, this requires a domination argument localized to a compact set.
Fix $i \in \{1,\dots,n\}$ and $x_0 \in \mathbb{R}^n$. Let $K:=\operatorname{supp}g$ and choose $r:=1$. Define
\begin{align*}
K_0:=\overline{B}(x_0,r)-K=\{z-w:z\in\overline{B}(x_0,r),\,w\in K\}.
\end{align*}
This set is compact because it is the image of the compact set $\overline{B}(x_0,r)\times K$ under the continuous map $(z,w)\mapsto z-w$. If $x \in B(x_0,r)$ and $g(x-y)\neq 0$, then $x-y\in K$, so $y=x-(x-y)\in x-K\subset K_0$. Thus, near $x_0$, every convolution integral is actually an integral over the same compact set $K_0$.
Let $e_i\in\mathbb{R}^n$ denote the $i$th standard basis vector. For $h\in\mathbb{R}$ with $0<|h|<r/2$, define
\begin{align*}
Q_h:K_0\to\mathbb{R}
\end{align*}
by
\begin{align*}
Q_h(y)=f(y)\frac{g(x_0+h e_i-y)-g(x_0-y)}{h}.
\end{align*}
For each fixed $y\in K_0$, the function
\begin{align*}
t\mapsto g(x_0+t e_i-y)
\end{align*}
is a smooth real-valued function of one real variable. Applying the mean value theorem to this one-variable function gives
\begin{align*}
\left|\frac{g(x_0+h e_i-y)-g(x_0-y)}{h}\right|\leq \|\partial_{x_i}g\|_\infty.
\end{align*}
Consequently,
\begin{align*}
|Q_h(y)|\leq |f(y)|\|\partial_{x_i}g\|_\infty\mathbb{1}_{K_0}(y).
\end{align*}
The right-hand side is integrable with respect to $\mathcal{L}^n$ because $K_0$ is compact and $f\in L^1_{\mathrm{loc}}(\mathbb{R}^n)$. Also, for every $y\in K_0$, smoothness of $g$ implies
\begin{align*}
Q_h(y)\to f(y)\partial_{x_i}g(x_0-y)
\end{align*}
as $h\to 0$. Dominated convergence therefore permits the limit to pass through the integral:
\begin{align*}
\partial_{x_i}(f*g)(x_0)=\lim_{h\to 0}\int_{\mathbb{R}^n}Q_h(y)\,d\mathcal{L}^n(y)=\int_{\mathbb{R}^n}f(y)\partial_{x_i}g(x_0-y)\,d\mathcal{L}^n(y).
\end{align*}
This is exactly
\begin{align*}
\partial_{x_i}(f*g)(x_0)=(f*\partial_{x_i}g)(x_0).
\end{align*}
Since $x_0$ was arbitrary, the identity holds pointwise on all of $\mathbb{R}^n$.[/guided]