In Baghdad on Wednesday , an inmate in a high-security prison in the Kadhimiya neighborhood grabbed an AK-47 from a guard , shot him dead and began freeing other prisoners , including a citizen of Saudi Arabia , officials said .