Brooklyn engineering school team wins $1 million smart gun competition