In Spain, which has suffered deadly bombings in the past, law enforcement agencies are investing heavily in anti-terrorism technology.