For some reason this Imp chose to toast his friend to the top left instead of firing friendly-fire-lessly to the bottom left. (Or instead of hitting two opponents to the bottom right, but maybe they just really wanted to gank that dwarf because he was closer to the others) http://img341.imageshack.us/img341/4681/targetfail.png
The devs mentioned in an earlier thread that some enemies have 'personalities' so this might even be intentional stupidity. An Imp probably wouldn't care much about accidentally harming its allies...