The incident occurred last evening when Raimaan (19), a resident of Rajasthan, had taken his cattle out for grazing, they said.
The victim was rushed to a private hospital in Delhi where his condition is stated to be out of danger.
Earlier in the day, Sonepat and its surrounding areas saw a heavy dust storm followed by thunder showers.