It depends on where you performed your work.
If you worked from inside the United States, teaching online, then your income is United States income. If you were physically located in Africa when doing your teaching, then your income is foreign income based in Africa.
@craerob
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"