Afghan official: 3 civilians killed in militant gun battles