Police killed at least eight militants wanted for target killings and attacks on police during a raid in the southern port city of Karachi.