UN says Afghan army mistakenly fired mortars that killed 23