Warwickshire, searching for victory, were left to rue an aggressive declaration as Somerset chased down 410 on the final day.