Police say man was trying to make smoke bomb in apartment