NIAMEY, Niger — Niger's government says coup attempt at presidential palace has been thwarted days before handover to new president.