Five alleged terrorists were killed in a shootout with police in Spain's Catalonia region early Friday following deadly attacks there that killed at least 14 people and injured more than 100.