A British man was among people shot dead in the suspected terror attack, with the 24-year-old gunman also thought to have killed three members of his own family.