A gun-toting man prompted a scare in a Long Island neighborhood Wednesday, forcing streets to be shut down and a local school to go into lockdown, when he allegedly threatened a neighbor and then two police officers with what appeared to be a handgun, authorities said.