Senate candidates spar over national security