"We strongly denounce the terrorist attack on the Presidential compound in Mogadishu, Somalia, on February 21 in which several senior officials were among those killed," the spokesperson in the Ministry of External Affairs said.
He said India was "heartened" by the resolve of the Somali President Hassan Sheikh Mohamud to carry forward the efforts of his government and people to restore stability in the country.
"We condemn terrorism in all its manifestations regardless of its causes," the spokesperson said.
The Shebab rebels had claimed responsibility for the attack.