The two men will also be fined Rs. 3.05 lakh each, the judge said, with Rs. 6 lakh going to the girl and Rs. 10,000 to the state.
The girl had gone to her neighbour's house to play with their two children -- a four-year-old son and a two-year-old daughter.
The police have registered a case and investigations are on, the official said. Meanwhile, a BJP functionary said the deceased was associated with the party.
The Punjab and Haryana High Court on Wednesday allowed bursting of firecrackers for three hours -- from 6.30 pm to 9.30 pm -- on the birth anniversary of Guru Nanak Dev on November 4.