An overdetermined problem in Riesz-potential and fractional Laplacian