It is a fairly common expression when wars, disasters and terrible events in general are being reported.
Your interpretation is good. It usually describes people in a state of fear being forced to escape/avoid danger.
I would rephrase your sentence as:
His fear of ghosts sent him fleeing barefoot onto the streets and into the night
I am not a teacher.