The Dutch foreign minister has apologised to Russia for the detention of a Russian diplomat in The Hague, saying his right to diplomatic immunity had been violated.

Russian embassy officials had said police had entered the diplomat's home, beat him with a baton and detained him for several hours last weekend.

Russian President Vladimir Putin had demanded an apology after the incident involving the Russian embassy's second-ranking diplomat.

Russia said Dmitry Borodin was badly beaten in front of his children by what it said were unidentified armed assailants, and lodged a formal diplomatic protest over Saturday's incident.

A Dutch police spokeswoman Ellen van Zijl confirmed there had been an incident involving a Russian diplomat, adding: "This man is fine. He is not in the hospital".

Mr Putin, speaking at a news conference in Indonesia after an Asia-Pacific summit, said the incident was a "very rude violation" of diplomatic rules.

"Depending on how the Dutch side conducts itself, we will react," he added.

A spokeswoman for the Russian embassy in The Hague, Sofia Sarenkova, said she believed a complaint from neighbours about Mr Borodin's treatment of his children had been "one of the pretexts" for the incident.

Local child protection services in The Hague said they were investigating the neighbours' complaint.