Man arrested for stealing laptop, firing gun