(CNN) -- A man killed three people at a primary school in central China on Monday and then took his own life by jumping off a building, state media reported.