From my professor's notes on statistical mechanics. $\left|\bf{k}\right\rangle$ is eigenstate of the hamiltonian of the free particle with periodic boundary conditions: $$ \left\langle{\bf r}|{\bf k}\right\rangle = \frac{1}{\sqrt{V}} e^{i\bf{k}\cdot\bf{r}}. $$
The states $\left|\bf{k}\right\rangle$ are eigenstates of the kinetic energy: $T_1|{\bf k}\rangle = (\hbar^2 k^2/2m)\left|\bf{k}\right\rangle$. Thus, the single-particle kinetic energy is diagonal in momentum space $$ \langle{\bf k'} | T_1 | {\bf k}\rangle = \delta_{{\bf k},{\bf k'}}\frac{\hbar^2 k^2}{2m}. $$
One gets \begin{align} \delta_{{\bf k},{\bf k'}}\frac{\hbar^2 k^2}{2m} &= \int d{\bf r'} \int d{\bf r} \langle{\bf k'}|{\bf r'}\rangle \langle{\bf r'} | T_1 | {\bf r}\rangle \langle{\bf r}|{\bf k}\rangle \\ &= \int d{\bf r'} \int d{\bf r} \frac{1}{\sqrt{V}} e^{-i\bf{k'}\cdot\bf{r'}} \langle{\bf r'} | T_1 | {\bf r}\rangle \frac{1}{\sqrt{V}} e^{i\bf{k}\cdot\bf{r}} \end{align} from which we have the well-known coordinate representation of the kinetic-energy operator $$ \langle{\bf r'} | T_1 | {\bf r}\rangle = \left(\frac{-\hbar^2 \nabla^2}{2m}\right)\delta({\bf r}-{\bf r'}). $$
What I don't understand is how it concludes the very last equation from the one preceeding it. I could verify it is right by substituting it back, but I'm interested in another explanation and more importantly its uniqueness. I think there is a trivial way to say that, but I couldn't find it. Any help is greatly appreciated.