Iraqi police say insurgents have killed at least 40 people and wounded dozens more in attacks just four days before a national referendum on a new constitution .