CCTV footage indicates apparent lapses in security as gunman manages to approach soldiers and civilian guards and shoot without being detected, before fleeing