Firefighters had to rescue a suspected burglar from a rooftop