Kerry confident of US-Pakistan ties