The AOO is a bit funky and I hope that it is a bug. If you move in and attack with the same mouse click it can set off an AOO. Move in next to the enemy and then after moving in click on them to attack. Also look for a red arrow under the enemy as you are moving your mouse around them, that usually indicates where the enemy is likely to set off an AOO.