Officials say coalition and Afghan troops came under attack as they approached two compounds in Zabul province where militants were thought to live .