Causing lots of damage and killing people will make you get wanted stars. Once you get a certain number of stars, police will chase and shoot at you. To lose them easily, simply move to a different area. All your stars should then instantly disappear.
When you have heat, get rid of it by going to another neighborhood. This will only work if you don’t have cops tailing you.