Russian President Vladimir Putin paid an unexpected visit to a command post in Kursk, where his troops are fending off a Ukrainian counteroffensive.