CARACAS, Venezuela -- Spain's decision to harbour a prominent Venezuelan opposition activist is fueling tensions between both nations.

Activist Leopoldo Lopez took refuge at the Spanish ambassador's home in the Venezuelan capital this week and spoke to reporters Thursday, urging people to support opposition leader Juan Guaido.

That brought a rebuke from a Venezuelan diplomat Friday and deepened political tensions between Caracas and Madrid, which has urged Nicolas Maduro to allow fresh elections. Thousands of Venezuelans have fled the crisis in their country for Spain.

Venezuela's ambassador in Madrid told Radio Nacional de Espana that permitting Lopez to urge Venezuelans to back the uprising is "inappropriate."

"It's extraordinary for (Lopez) to use the ambassador's residence as an operational base to abet a military uprising," said Ambassador Mario Isea, according to private Spanish news agency Europa Press.

During a visit to the Lebanese capital of Beirut, Spain's acting foreign minister reiterated that Lopez is only a guest at the Spanish embassy in Caracas and cannot utilize the building as a headquarters for opposition activity.

"He is a guest and was received as a guest," Minister Josep Borrell said. "We can't permit that the Spanish embassy be the centre of political activities in Venezuela."

Lopez went to the Spanish embassy days after breaking house arrest to join an attempted military revolt against Maduro. He was detained in 2014 for leading protests against Maduro's rule, but was freed this week.

Venezuela's top court has ordered Lopez's arrest, but Spain has refused to hand him over.

Spain says if Lopez wants to request political asylum he can only do so inside Spain.

The South American nation is embroiled in a months-long power struggle between Guaido and Maduro, whose socialist government is reviled across much of the country amid a deepening economic and humanitarian crisis.

Human rights groups say protests this week have left at least five people dead. Fifteen-year-old Yonder Villasmil was killed during a demonstration over persistent blackouts in the northwestern state of Merida on Thursday night, according to the Venezuelan Observatory of Social Conflict. The organization reports that over 200 people have been injured in clashes between protesters and state security forces.

The crisis has increasingly geological dimensions as the United States and over 50 other nations choose to recognize Guaido while powerful Maduro allies including China and Russia continue to support the socialist leader.

On Friday the Lima Group of a dozen nations backing Guaido said they would ask the "International Contact Group" to hold a joint meeting to discuss ways to converge their efforts in finding a return to democracy for Venezuela.

The "International Contact Group" of several European and Latin American nations is pushing both sides to reach an agreement on holding new elections.

Lima Group nations also agreed to make gestures toward Cuba to participate in finding a solution. The Caribbean island is a close ally to Venezuela and has been vocal in rejecting U.S. sanctions and pressure for Maduro to exit.