Police undergo 'realistic' active shooter training