Attack on Afghan police post leaves 17 dead