The explosion occurred near the Baluchistan University in provincial capital Quetta.
Baluchistan Home Minister Mir Sarfaraz Bugti said that a traffic police post was the target of the bombing.
"Two policemen were killed and five people injured, including three policemen," he said.
The injured have been shifted to a nearby hospital.