Man fined for not putting rifle in gun safe