Afghan police killed 'by mistake'