Ha, I hadn't heard that was how they got it, I was under the impression it was just stupidity on the part of the Americans. Seems like something you would want to do: if you have a flying death robot you should make it so the people you are spying on/shooting at cannot take control of it.
They did not take a control over it, per se.
But they jammed its communication with the base, so it couldn't receive orders - in which case it should automatically return to the home base.
And then they were broadcasting a fake GPS signals that made the drone
thinking that it was going towards the base in Afganistan, while it just landed politely on Iranian airfield.
Because obviously US Army's top end GPS system does not use any reliable method of authentication whether a message comes from the actual satellite, and not from the enemy's radio.