A gunman opened fire in a bar in northern Mexico on Thursday, killing seven people and wounding two others in the latest burst of violence in the country.