Deputies killed a Maine man outside a police station; police say he was armed with a rifle