Eleven people have been killed after the gunman opened fire during a baby naming ceremony.