Topological electromagnetic response in the chiral superconductor Sr2RuO4