A 16-year-old girl in Frederick County, Virginia, is recovering from a gunshot wound inflicted by her father, a law enforcement official said.

The shooting was a case of mistaken identity and happened early Tuesday morning when the teen tried to sneak into her house through the garage.

The father, Easton McDonald, was allegedly getting ready for his job as a deputy with the Loudon County Sheriff's Department when he heard an alarm triggered in the garage.

McDonald grabbed a firearm because he heard a bang and other sounds from inside the attached garage. When he opened the door, he allegedly fired at the person he saw coming toward him, the Winchester Star reports.

After he turned on the light, he realized the intruder was his daughter, who had snuck out earlier in the evening and was possibly trying to get back in without getting caught.

The girl, whose name has not been released, suffered bullet wounds in her torso.

McDonald attempted to drive his daughter to a local hospital, but wrecked his car on the way there.

A fire and rescue team took the girl the rest of the way to the hospital where she is recovering, Raw Story reports.

Donnie Lang of the Frederick County Sheriff's Department where the shooting and car crash took place, said no one's decided whether any charges will be filed.