Madrid’s envoy says Spain, U.S. work as “team” against terrorism