The car's explosion killed seven, but the military said the death toll would have been above 50 had the tank not acted.
The Al-Qaeda affiliate has claimed responsibility for the attack in Mogadishu.
Washington says it has "credible" information of threats to compounds frequented by Westerners.
Police killed two attackers and are searching for a third following the blast in the coastal city.
Air strikes come after Kurdish Militants blamed for killing 37 people in Ankara car bombing.
Security officials said first findings suggested the PKK or an affiliate group was responsible.
The attack in Nusaybin, near the Syrian border, also wounded 35 people.
The footage shows ISIS's increasing use of child soldiers in propaganda videos.
Four men run into mall after a car bomb explodes outside the complex in eastern Baghdad.