A suicide car bomber in northern Iraq has killed at least 20 people at the funeral of a local Kurdish official .