Andrew Felix Kaweesi was being driven to work early Friday when his car was attacked by unknown assailants. Also killed were a driver and a bodyguard, said presidential spokesman Don Wanyama.
There was no word yet on the possible motive, but the suburb where the attack occurred is noted for its relatively high crime rate.
Kaweesi's last public appearance as spokesman was at an event Wednesday where he disputed a Human Rights Watch report that accused Ugandan forces of killing scores of people during an attack on a tribal leader's palace in November.
In March 2015 a high-profile prosecutor named Joan Kagezi, who had been involved in a case involving alleged Islamic extremists, was shot dead by gunmen in a Kampala suburb as she tried to buy groceries.
Disclaimer: No Business Standard Journalist was involved in creation of this content