In western Iraq, a car bomb went off near a police station, killing 17 policemen and wounding more than 30.