Pakistan confirms killing of official in Afghanistan