Take out the shingels around the chimney and install new flashing. Making a grove into the brick 1/2" and caulk, but first install the small aluminum flashing under the shingels the the bigger flahing over it. the smaller flashing does not have be cut into the brick, it's more of a back up/under flashing.