Community members and city officials gathered to pray for two police officers shot in East Boston Wednesday night.