and fasten some pt 2x4's to the brick, acting as ledgers if you will and then screw the shed back to these boards using a screw with a large washer. Shim the front or foundation of the shed to level with the brick wall.
All this will do is to keep it up snug and in place, but any pressure on this will cause the boards to work loose or the shed siding to tear.
If the land is at a true 90 degree angle to the home or you make it that way, there is no reason actually to fasten it to the wall. Snug it up and use molding to cover the intersection.