The gunmen, who were in a car, fired at the police vehicle in Nilore area of Islamabad.
The driver of the police vehicle was injured in the shooting. The gunmen escaped after the attack.
Police launched a search operation but were unable to make any arrests.
No group claimed responsibility for the incident. The motive for the attack could not immediately be ascertained.