Man breaks into apartment gets bitten by dog