Pakistani police say gunmen have shot and killed a Pakistani intelligence official as he left a mosque following Friday prayers .