I've had the same issue and just fixed it.
This is how:
1.set API key based access control for the search service in the azure portal
2.set the admin key for the same resource in Azure Ai Studio in the project settings > connected resources > choose the Azure AI Search (Cognitive Search) type resource, then edit. Check also if the target is set correctly!