The incident took place when the 16-year-old victim was forcibly dragged and raped by one of the accused, identified as Pradeep in his house, police said.
Later, another youth joined him and committed the crime.
In a state of shock, the girl went to her house and sprinkled kerosene on herself in an attempt to commit suicide.
However, the girl was admitted to a hospital with serious burn injuries, they said, adding that the accused duo has been arrested.
Further probes are on, police added.
Meanwhile, rattled by the series of sexual assaults against women at various places in the State, the Haryana government on Thursday formed a three-member committee at district level to investigate, monitor and ensure speedy prosecution of such crimes.