Homeland security chief: U.S. safer, but work remains