Part of a city in north-west China has been sealed off and dozens of people placed in quarantine after a man died of bubonic plague, state media say.