Heat Kernel on Lie Groups and Maximally Symmetric Spaces