Uganda's President Yoweri Museveni has asked Kenyans for "forgiveness" after his son - a senior military officer - tweeted about invading their country.
His apology came a day after he sacked Muhoozi Kainerugaba as commander of the army's land forces.
But Mr Museveni softened the blow by promoting him to the rank of general, and retaining him as his adviser.
Mr Museveni has long been suspected of grooming the 48 year old to succeed him when he eventually steps down.
Gen Kainerugaba has increasingly been entering the political arena, with his critics saying this was in breach of the military's code of discipline.
His latest intervention came on Monday when he sent out a series of tweets - some serious, some in jest - about Kenya.
He said he had spoken to Kenya's former President Uhuru Kenyatta, and expressed regret that he had stepped down at the end of his two terms in August.
"My only problem with my beloved big brother is that he didn't stand for a third term. We would have won easily!" Gen Kainerugaba said.
In a later tweet to his more than 600,000 followers, he said: "It wouldn't take us, my army and me, 2 weeks to capture [Kenya's capital] Nairobi.
This led to an uproar on Twitter, with people accusing Gen Kainerugaba of being "reckless" and jeopardising relations between the neighbouring states.
It led to him urging Kenyans to "relax".
"I would never beat up the Kenyan army because my father told me never to attempt it! So our people in Kenya should relax!" Gen Kainerugaba tweeted.
Although the Kenyan government did not comment, Uganda's foreign ministry issued a statement saying Uganda treasured its "strong bilateral relations" with it "brotherly neighbour".