Joshua at the capture of Ai lay in ambush, and so deceived the inhabitants that he gained an easy victory (Joshua 8:4-26). Shechem was taken in this manner (Judges 9:30-45. Compare Jeremiah 51:12).
These dictionary topics are from M.G. Easton M.A., D.D., Illustrated Bible Dictionary, Third Edition, published by Thomas Nelson, 1897. Public Domain, copy freely.
Easton, Matthew George. "Entry for 'Ambush'". "Easton's Bible Dictionary".