Officially, the drone was used in a NATO/ISAF mission over Afghanistan and thus the US technically isn't responsible. Also, according to ISAF, the drone was flying over west Afghanistan. Should the story about GPS spoofing be correct, then the drone wouldn't have been spying on Iran at all.