A car bomb has killed at least four people near the offices of a leading Kurdish party in northern Iraq, hours after two others were killed in a car bombing west of Baghdad.