wait a secondused when you have just noticed or remembered something, or had a sudden idea
Wait a second.