Impurity problem in a bilayer system of dipoles