Joint security mechanism needed for eradicating terrorism : Hashmi