Quetta police officer Rehmatullah Niazi said the bomb exploded just outside the civil court, next to the police office that issues driving licences.