UPDATE 1-Azeri police release opposition party leader after detention

(Writes through after release of opposition party leader)

BAKU, Oct 19 (Reuters) - Police in Azerbaijan have released the leader of the main opposition Popular Front, Ali Kerimli, after detaining him earlier on Saturday, Kerimli's party said on social media.

He was detained along with scores of protesters at the start of a planned rally against low salaries, corruption and a lack of democracy in the energy-rich ex-Soviet state.

It was not immediately clear whether others were released.

The protesters have voiced a wide range of demands, including higher salaries for state employees and fair and independent elections in a country long accused by human rights groups and Western governments of a lack of transparency.

Kerimli told reporters before his own detention that some 50 people, mostly organisers of Saturday's unauthorised rally, had already been detained earlier in the week.

"We demand our constitutional rights and freedoms to be protected," Kerimli said. "We are not afraid of this government and we will fight till the end."

Police detained Kerimli soon after he began walking to the venue of the protest rally in central Baku. More than 80 other protesters were detained after him, a Reuters witness at the scene said.

The deputy head of the Baku police, Sakhlab Bagirov, confirmed to Reuters that some people had been detained, but declined to provide a number.

Before the protest, police cordoned off several streets in central Baku, a couple of metro stations were temporarily shut and there were problems with internet connection.

Azerbaijan has been governed by President Ilham Aliyev since 2003 when he succeeded his late father.

Western nations have courted Azerbaijan because of its role as an alternative to Russia in supplying oil and gas to Europe, but various European bodies and rights groups have accused Aliyev of muzzling dissent and jailing opponents, charges Baku denies. (Reporting by Nailia Bagirova; writing by Polina Devitt and Margarita Antidze; editing by Gareth Jones and Daniel Wallis)