Did Germany illegally arrest murder suspect Ali B. in northern Iraq?

Did Germany illegally arrest murder suspect Ali B. in northern Iraq?
The head of German federal police personally travelled to northern Iraq over the weekend to take hold of the suspect in a murder case that has inflamed debate on refugees. But did he act outside of the law?