A Maryland man has been charged with murder after confessing to fatally stabbing his grandmother inside her Montgomery County home.