A man broke into a neighbor's house and was caught in a compromising situation