Ukraine’s defense ministry was hit with cyberattacks on Tuesday, just as Russian President Vladimir Putin said he was withdrawing some troops near the border.