Three people were killed after a gunman opened f