Pakistan committed to eradicate terrorism: PM