Origin of thermal and non-thermal hard X-ray emission from the Galactic center