Tide of terrorism ‘reversed’, Pakistan tells D-8