The group of leaders signed a declaration against terrorism and extremism -- just days after the deadly attack in Manchester.