Two policemen were among four killed when militants attacked the building in Karachi, in Pakistan.