Two dead in militant attack on Afghan govt office: officials