Two security officials have been killed when gunmen on a motorcycle opened fire on a military vehicle in the Pakistani capital of Islamabad.