Both are grammatically correct. The first is more usual, since the event was recent and is directly related to the present situation. The second is usually in this form: He just stepped out for a moment.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.