Edmonton police officer accidentally fires gun