The algebraic Brauer group of a pinched variety