An overdetermined problem in potential theory