Hungary's prime minister says the country is filing a lawsuit against the European Union objecting to a mandatory plan to distribute migrants among members of the bloc. Viktor Orban said the suit would be filed later Thursday at the European Court of Justice. The EU is looking redistribute 120,000 asylum seekers already in the bloc among its 28 countries. Parliament last month approved legislation obliging the government to challenge the EU quotas, while Orban has repeatedly said that Brussels overstepped its authority when it approved the scheme despite opposition from a handful of mainly Eastern European countries. Orban earlier also described the migrant quotas as "illegal, unreasonable and unfair" and said it was wrong to force countries to take in migrants against their will. Robert Fico, the prime minister of neighboring Slovakia, said Wednesday that his country had filed its own complaint against the EU quotas. At least two people have been injured during clashes between groups of migrants and refugees on the Greek-Macedonian border. Macedonian authorities are allowing only people from the war-wracked countries of Syria, Afghanistan and Iraq to cross from Greece on their way to other European Union countries, leading to protests from those from other countries who have been blocking the crossing for all since Wednesday. Scuffles were breaking out intermittently between groups of mainly Iranians and Pakistanis on the one hand, and groups of mainly Afghans on the other, with both sides throwing rocks. At least two men were seen with bloodied heads from the rock-throwing. Greek riot police have been deployed in the area, forming a barrier to protect refugees waiting in a field on the Greek side to cross the border. Greece has also sent two trains to the area to provide transport back to the capital for migrants who cannot cross and wish to return to Athens. Volunteers were handing out fliers in several languages to the waiting crowd informing of the trains. A man believed to be from Morocco has died on the Greek-Macedonian border, electrocuted after touching high-power overhead railway cables when he climbed on top of a train carriage. Other migrants lowered the man's severely burned body to the ground and covered it with a sheet, and a volunteer doctor in the area confirmed the man had died. The doctor hurried away before giving his name. It was not immediately clear why the man had climbed onto the train carriage, which was stationary. The death came amid scuffles between migrants and refugees following the Macedonian authorities' closure of the border to those considered economic migrants. Macedonia is allowing only people from Afghanistan, Iraq and Syria to cross the border, and groups of people from other nationalities have set up makeshift roadblocks, preventing anyone from crossing. Last Saturday, a 24-year-old Moroccan man suffered severe burns in the same way after touching an overhead cable at the railway station. His injury sparked violent protests in the border area among those waiting to cross. More than 5,000 people of various nationalities are in the Idomeni border area. Migrants from Pakistan, Iran and other countries who Macedonian authorities are not allowing to cross into the country from Greece have set up roadblocks near the border, preventing refugees from crossing. Groups of migrants on Thursday used empty barrels, pieces of wood and metal to make a barrier about 120 meters (feet) from the Greek-Macedonian border and are stopping all Syrians, Afghans and Iraqis from entering the area. Macedonia has been allowing only people from the three countries to cross. The rest they consider economic migrants. Scuffles broke out between migrants and refugees on the border earlier Thursday, and a refugee camp set up in the area was looted of food and water during the melee. "Why aren't they allowing us to cross?" asked Eli, a 30-year-old Pakistani who has been living in Greece for six years and said he wanted to go on to Germany. "We're waiting until they open (the border). Why is there this discrimination going on? The border must either open for all or close for all." Eli would not give his surname for fear of reprisals for manning a roadblock. Scuffles have broken out between migrants and refugees at Greece's northern border with Macedonia, after hundreds of people blockaded the crossing in protest because they were not being allowed to cross the border. In recent days Macedonia has stopped allowing anyone except those from countries at war such as Syria, Iraq and Afghanistan, who are considered refugees, to cross into the country from Greece. Small groups of people from countries such as Iran, Pakistan and Bangladesh have been blockading the crossing since Wednesday. On Thursday morning, groups of Afghans demanding to be allowed to cross scuffled with the protesters. Greek police say there are around 2,500 refugees in the Idomeni border area who have been waiting in the nearby camp, and roughly 3,000 migrants.