El guardia civil acusado de matar a un marroquí con 17 disparos pensaba que "estaba evitando un atentado terrorista"