An extended Lipkin-type model with residual proton-neutron interaction