Germany has ended the military mission of its advisers in Iraq’s semiautonomous northern Kurdish region after years of supporting the U.S.-led coalition’s efforts against Islamic State militants, the Kurdish region’s Ministry of Peshmerga Affairs said Wednesday.