On a theorem of Khan in a generalized metric space