The Hand Ball - PK?

Did the defender play the ball or did the ball play the defenders hand?