Andrew Balbirnie's 77 helped guide Ireland to their first victory over Pakistan in 17 years as they won the opening Twenty20 international by five wickets in Dublin on Friday.