The Swedish soldier, from Norrbotten in northern Sweden, was injured in one leg, and was taken to a German field hospital in Mazar-e-Sharif.
"Swedish medical resources began the initial care on the injured soldier on the spot, as a medical helicopter was called in from Isaf, the international security force Swedish troops act under, to transport the injured to Mazar-e-Sharif," wrote the Swedish Armed Forces (Försvarsmakten) in a statement.
The soldier's condition isn't life threatening, but he will be brought home to Sweden for continued care, reported the Armed Forces.
As well as the Swedish soldier, one Afghan police officer was injured in the shooting, but it is still unclear how severely.
Soldiers immediately returned fire upon being attacked, and back up in the form of fighter jets were called in.
"These never needed to open fire," reported the Armed Forces, however.
Last Wednesday, another Swedish soldier was injured in Afghanistan, but this injury did not occur in battle. The soldier was burning garbage when the flames from the fire sparked up, injuring the side of his body and his face.