Boston's police commissioner told lawmakers conducting the first congressional hearing on the Marathon bombings that government should tighten security around celebratory public events and consider using more undercover officers.