Muhoozi Kainerugaba, Uganda’s military chief, denied accusations that soldiers had been sent to the home of opposition leader Bobi Wine to beat his wife in posts on X.