The incident happened around 12:30 a.m. Saturday. The three men, who were allegedly armed with a shotgun, a pistol and a spray canister, forced their way inside a home, according to police.
There were four people inside the home at the time, police said.
Police alleged that a male suspected entered the home and made a demand to a woman at the home. That was when a man at the home got into an altercation with the suspect in an attempt to subdue him and take away the shotgun.
"A second male suspect who was in the basement, heard the altercation, came upstairs and allegedly fired a shot at the victim attempting to stop him from subduing the male suspect," police said in a release. "The shot narrowly missed the victim, ending up in the wall of the residence."
The suspects ran off with an undisclosed amount of property, police said.
Some time during the incident, two of the four people at home "were overcome by a substance that was brought by the suspects," police said.
The four victims received minor injuries and were treated at the scene.
Barrie police said they are continuing with their investigation. There are no suspect descriptions at this time.