Nato apologises for Afghan civilian deaths