A riot has injured prisoners and some officers at a police detention center south of Indonesia's capital.

Muhammad Iqbal, a national police spokesman, said none of those injured in the riot late Tuesday was in serious condition. He said some from both sides were injured but didn't give a number and refused to provide more details except to say no one died.

Unconfirmed reports said the riot began when some terrorist convicts tried to grab weapons from guards on the counter-terrorism squad.

Iqbal was speaking to reporters early Wednesday outside the elite police force's headquarters in Depok, on Jakarta's southern outskirts, where the riot occurred.

It happened four days after the arrests of three Islamic militants who planned to attack the headquarters and other police stations in the same town.