A Phoenix resident returned home just in time to stop a burglar exiting his house, according to court paperwork.