Six militants and three police officers have been killed during a shoot-out after extremists clashed with authorities in Turkey.