Two Calgary men have been charged in a home invasion robbery in the southeast that included a man being grazed by a bullet.

Police were called to a home in the 800 block of Queensland Drive S.E. just before noon on Wednesday after reports of shots fired.

About half an hour before that, three men wearing masks had forced their way into the house and assaulted the 26-year-old man living there, said police on Thursday. The group also ransacked the home.

When a family member, aged 41, arrived to check on the victim at the home, he was confronted by one of the offenders. The man fired at gun at the relative, leaving him with a minor gunshot wound to the abdomen.

It was one of three shootings in the Calgary area in 14 hours.

Both victims were treated in hospital and released, said police.

Police tracked both suspects a short time later and arrested them. They continue to search for a third man.

A 23-year-old man is charged with assault with a weapon, robbery with a firearm, unlawful confinement, tampering with a serial number and possession of stolen property over $5,000.

A 21-year-old man is charged with failure to comply with a recognizance, possession of a controlled substance, assault with a weapon, robbery with a firearm and unlawful confinement.

Police said they believe the targeted attack was drug-related.