A man is in custody after he tried to enter St. Patrick's Cathedral in New York with gallons of gasoline, lighter fluid and lighters, authorities said.