Application of the real-space renormalization group to dynamic critical phenomena