The nation’s top official for safeguarding election infrastructure called the spread of election fraud allegations “irresponsible” after being asked about such claims by former President Donald Trump and X owner Elon Musk.