Worshippers were confronted by the suspects as they were leaving the Arrahma mosque at about 10:30pm local time.
Four people were wounded outside the mosque. Another four were injured while in their apartment.
However, it isn't suspected to be a terrorist attack.
Spate of attacks in France
Four men approached the location in a Renault Clio and two stepped out holding handguns and shotguns.
People started to run when they saw the weapons. In the meanwhile, they opened fire. The other two men remained inside the vehicle.
However, according to sources, people leaving the mosque weren't the intended target. The attack was believed to be the consequence of a personal dispute.
Received Form 16? Know all about its nitty-gritty here!
Aadhaar now mandatory for PAN: All you need to know