Britain, Pakistan vow cooperation on security