The incident occurred on Tuesday afternoon at the Migration Board’s detention centre in Gävle.
“Her injuries are not life-threatening,” said police spokesman Hesam Akbari.
Two police officers had been sent to the detention centre to accompany the suspect to a waiting vehicle.
Moments prior to the attack, the man is reported to have threatened one of the police officers.