On a system involving a critically growing nonlinearity