Decay of a metastable state: Comparison between the transition state theory and the generalized Kramers model