Six other people , including a nine-year-old girl , a federal judge and a member of Giffords 's staff , were killed when a gunman opened fire outside a supermarket in Tucsonwhere Giffords was meeting with constituents , shooting 18 people .