Border police commander Hossein Zolfaghari said the six officers and one soldier were detained , and told officials they were looking for Taliban militants and crossed into Iran by accident .