Two arrests made in Sydney's east after reports of a person with a firearm prompted a police operation.