A thief broke into a house to rob it, but the owner turned the tables on him