A teenage boy had to be taken to hospital after being bitten by a police dog as he was arrested over a fire.