A man's gun discharged while he was loading it inside of his home, striking a passing bike rider, police said.

According to officials, the incident was reported at 7 p.m. in the 1200 block of Summerfield Drive in Herdon, Va.

John Albers, 49, was inside of his home loading his firearm, when it discharged and struck a passing bicycle rider, police said. Albers was arrested and charged with willfully discharging a firearm in a public place resulting in bodily injury.

The bicycle rider was transported to a hospital and underwent surgery. His current condition is unknown.

Stay with NBCWashington.com and News4 for more on this developing story.