Mourning declared after scores of troops die in Afghan base attack