Four killed in blast near polling station in northwest Pakistan: official