At least 10 elderly people have been killed when fire ripped through a retirement home in northern Spain.