Tanzania's shock 1-0 defeat of Guinea, whose attack included Dortmund star Serhou Guirassy, has earned them a place in next year's Africa Cup of Nations.