“This is a day of sorrow for all of Spain,” Prime Minister Pedro Sanchez said as he declared three days of mourning.