ISLAMABAD (AP) -- Pakistan's former Prime Minister Imran Khan appeared in court Wednesday, a day after he was dragged from another court and arrested in Islamabad, setting off clashes between his supporters and police. Angry protesters stormed and set fire to a building housing Radio Pakistan in the northwest as the death toll from the violence rose to four.
In Islamabad, a judge was asked to approve keeping the 70-year-old opposition leader in custody for up to 14 days. Khan, who lost power last year but remains the country's most popular opposition figure, is the seventh former prime minister to be arrested in Pakistan.
His dramatic arrest on Tuesday deepened the political turmoil and sparked violent demonstrations. Two people were killed first, one Tuesday in the southwestern city of Quetta and another in the northwestern city of Peshawar overnight. Two more were in clashes with police Wednesday in Peshawar.
In eastern Punjab province, where authorities said 157 police officers were injured in clashes with Khan supporters, the local government asked the army to step in and restore order.
Pakistan's GEO television broadcast footage showing Khan appearing before a judge at a temporary court inside a police compound Wednesday. The former premier was seen seated in a chair, holding documents. He appeared calm but tired.
The judge is expected to rule on the request for a 14-day detention later in the day. Meanwhile, Khan's legal team challenged his arrest before the Islamabad High Court, seeking his release.
Also in Peshawar, Khan's supporters raided the building housing Radio Pakistan, damaging equipment and setting fire to it, said police official Naeem Khan. Some of the employees were trapped inside, he said, and police were trying to restore order.
Khan's Pakistan Tehreek-e-Insaf party had called for demonstrators to remain peaceful, hours after mobs angered over the dramatic arrest set fire to the residence of a top army general in the eastern city of Lahore.
When he was arrested on Tuesday, Khan was appearing in court on multiple graft charges brought by Islamabad police. As he showed up in court, dozens of agents from the National Accountability Bureau backed by paramilitary troops stormed the courtroom, breaking windows after Khan's guards refused to open the door.
Khan's supporters attacked the military's headquarters in the garrison city of Rawalpindi near the capital, Islamabad, but did not reach the main building housing the offices of army chief Gen. Asim Munir.
Other demonstrators tried to reach the prime minister's residence in Lahore, but were driven off by baton-wielding in police. Others attacked vehicles carrying troops and hit armed soldiers with sticks. So far, police and soldiers have not fired at protesters.
The military has not commented on the attacks on its facilities. None of the leaders from Khan's party denounced the attacks on the military.
A police statement Wednesday said officers in eastern Punjab province arrested 945 Khan supporters since Tuesday -- including Asad Umar, a senior leader from Khan's party. Dozens of Khan supporters were also detained in Islamabad, Karachi, Peshawar and elsewhere.
Shah Mahmood Qureshi, senior vice president from Khan's party, appealed for peaceful demonstrations Wednesday, urging followers: "Don't damage public property, don't attack offices, as we are peace lovers." He said the party is considering challenging Khan's arrest in the Supreme Court.
By morning, police said some 2,000 protesters still surrounded the fire-damaged residence in Lahore of Lt. Gen. Salman Fayyaz Ghani, a top regional commander. They chanted slogans at the military, including "Khan is our red line and you have crossed it." Ghani and his family members were moved to a safer place when the mob on Tuesday first attacked their sprawling house.
Police deployed in force across the country, and placed shipping containers on a road leading to the sprawling police compound in Islamabad where Khan is being held and where he appeared before a judge at the temporary court placed there for security reasons, according to the government.
Amid violence, Pakistan's telecommunication authority on Tuesday blocked social media, including Twitter. The government also suspended internet service in Islamabad and other cities. Classes at some private schools were canceled for Wednesday.
Rights group Amnesty International said it was alarmed by reports of Pakistani authorities blocking access to mobile internet networks and social media -- Twitter, Facebook, and YouTube are suspended for a second day. Amnesty urged authorities to show restraint, saying clashes between law enforcement and Khan's supporters risk human rights violations.
The National Accountability Bureau has detained and investigated former officials, including former prime ministers, politicians and retired military officers. But some view the NAB as a tool used by those in power, especially the military, to crack down on political opponents.
When Khan was in power, his government arrested Shahbaz Sharif, then the opposition leader, through the NAB. Sharif was facing multiple corruption cases when he managed to oust Khan in a 2022 no-confidence vote. The charges were later dropped, citing a lack of evidence.
Prime Minister Sharif returned to Pakistan on Wednesday from a U.K. trip and was to hold a Cabinet meeting on the latest developments. His brother, Nawaz Sharif, who also served as prime minister, was arrested several times on corruption allegations.
In March, police stormed Khan's Lahore residence, seeking to arrest him in a corruption case related to hiding income from the sale of official gifts.
Later Wednesday, Khan appeared in a different courtroom at the high security court and was indicted in the lingering graft case, pleading not guilty, local media said.
As violence spread, diplomats from various countries and common people in Pakistan stayed home. The U.S. Embassy in Islamabad canceled all its Wednesday consular appointments following Khan's arrest and issued a nationwide alert, telling Americans to review their personal security plans and avoid large crowds.