Pakistan end T20 World Cup campaign with narrow win over Ireland