Haunting video showed the gunman walking through the courtyard with a rifle before opening fire