A military coup bid in the small west African state of The Gambia was foiled early Tuesday, while President Yahya Jammeh was abroad, military and diplomatic sources said.