At least 12 people were killed before the alleged gunman was shot to death during a long gun battle with responding police officers.