The US special envoy for Afghanistan is stepping down from his post and will be replaced by his deputy, US Secretary of State John Kerry announced Wednesday.