Myanmar’s government confirmed Monday it had carried out its first executions in nearly 50 years, hanging a former lawmaker, a democracy activist and two other political prisoners.