At least 37 civilians were killed and 212 were injured in an explosion at a popular beach restaurant in the Somali capital late on Friday, the health minister said, an attack the government blamed on militant Islamist group al Shabaab.