BRICS declaration named terror groups, condemned terror attacks