Millimeter-wave observations of H2CO in ρ Oph B1