40 jihadists, 17 police and army killed in Iraq clashes