A balaclava-clad burglar fled after being disturbed by a resident in the Bradford district.