Which sentence contains a misplaced modifier?

A.) By accident, he poked the little girl with his finger in the eye.
B.) By accident, he poked the little girl in the eye with his finger.