An Armenian court on Friday put the nation's former president in custody on charges linked to a deadly police crackdown on a 2008 protest over alleged voting fraud.

Robert Kocharian, 64, spent two weeks in jail last summer on charges of violating the constitutional order by sending police to break up the protest in the Armenian capital of Yerevan. He was freed on appeal, but on Friday a higher court ordered that he should stay behind bars.

Kocharian's lawyer said he walked to jail without waiting for police to escort him there.

Kocharian rejects the charges, calling them a political vendetta by incumbent Prime Minister Nikol Pashinian, who helped stage the 2008 protest. The demonstration protested the results of an election two weeks earlier for Kocharian's replacement. Eight demonstrators and two police died in the clash.

"The main organizer of the events ... tries to clean himself of blood," Kocharian said of Pashinian in a statement Friday.

In the 2008 election, Kocharian, who was president from 1998 to 2008, backed Serzh Sargsyan, who served as Armenia's president for the following decade.

In April, due to term limits, Sargsyan shifted into the prime minister's seat in what was seen as an attempt to cling to power. But he stepped down after just six days in office in the face of massive protests organized by Pashinian, who then took the prime minister's post.

Wiretaps released earlier this week had Pashinian discussing Kocharian's arrest with the nation's top security official. Pashinian denounced the released recordings as a "declaration of war" by his political foes.

Pashinian has called an early parliamentary election for this Sunday in a bid to win control of parliament, which is still dominated by members of Sargsyan's Republican Party. Pashinian's party is expected to sweep the vote.